-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Master Prompt - ระบบจัดการพันธกิจบ้านกาฬสินธุ์ครบครัน
🎯 System Overview
สร้างระบบจัดการพันธกิจบ้านแบบครบครันสำหรับกาฬสินธุ์ ที่มีโครงสร้างหลายระดับ 6 บอดี้ 52 กลุ่มพันธกิจ และระบบสิทธิ์การเข้าถึงที่สมบูรณ์
🏗️ Master Prompt for Complete Mission Management System
Create a comprehensive Thai Mission Management System for Kalasin Province with the following specifications:
=== REAL ORGANIZATIONAL STRUCTURE ===
6 BODIES SYSTEM:
1. บอดี้สมเด็จ (17 groups) - Districts: สมเด็จ, สหสขันธ์
- Care Leaders: ชนาภา (8 groups), บุญโฮม (3 groups), บุญจันทร์ (2 groups), บุญตา (1 group), บุญมีแสน (1 group), บุญมีห้อง (1 group)
- Key Groups: สร้างแก้ว ม.3, หนองผ้าอ้อม ม.7, โคกกลางผาเสวย, คำไผ่, ลำหัวยหลัว
2. บอดี้เมือง 1 (16 groups) - Districts: เมือง, นามน
- Care Leaders: เบญจมัย (5 groups), จีรวรรณ (3 groups), ปุนนภา (5 groups), ผุสดี (3 groups)
- Key Groups: บ้านหนองบัว, บ้านสิมลี, โคกน้ำเกลี้ยง, นาจารย์, คำเม็ก
3. บอดี้เมือง 2 (11 groups) - Extended areas: กมลาไสย, ยางตลาด, ดอนจาน, เขาวง, มุกดาหาร
- Care Leaders: อ.สรรเสริญ (2 groups), ดาวใจ (6 groups), สถิต (2 groups), สุริยงค์ (1 group)
- Key Groups: โพนงาม, ยางตลาด, ดอนจาน, โคกเครือ, เชียงเครือ
4. บอดี้ท่าคันโท (2 groups) - Border regions: ท่าคันโท, ศรีธาตุ (อุดรธานี)
- Care Leaders: แอ๋ว (1 group), น้อย (1 group)
- Key Groups: ศรีธาตุ, ภุฮัง 1
5. บอดี้กุฉินารายณ์ (3 groups) - District: กุฉินารายณ์
- Care Leaders: วีรวิทย์ (2 groups), เพลินพิศ (1 group)
- Key Groups: บัวขาว, ดอนอุมรัว, หัวนาคำ
6. บอดี้คำใหญ่ (3 groups) - District: ห้วยเม็ก
- Care Leaders: สำลี (3 groups)
- Key Groups: คำใหญ่, คำศรี, [ขยายได้]
TOTAL SYSTEM: 6 Bodies, 17+ Care Leaders, 52 Mission Groups, 3+ Provinces
=== ROLE-BASED ACCESS CONTROL ===
USER ROLES & PERMISSIONS:
1. ADMIN (แอดมิน)
- Full system access
- User management
- System configuration
- All CRUD operations
2. TEAM LEADER (หัวหน้าทีม)
- READ-ONLY access to ALL data
- View all 6 bodies
- System-wide reports
- Data export capabilities
- Executive dashboard
- Performance analytics
3. BODY LEADER (หัวหน้าบอดี้)
- Full CRUD access to OWN body only
- Manage care groups in their body
- Manage mission groups in their body
- Manage members in their body
- Assign coordinators
- Body-level reports
4. CARE LEADER (หัวหน้าแคร์)
- Manage OWN care group only
- Manage mission groups under care
- Manage members under care
- Meeting scheduling
- Care group reports
5. GROUP LEADER (หัวหน้ากลุ่ม)
- Manage OWN mission group only
- Member management
- Attendance tracking
- Group activities
6. MEMBER (สมาชิก)
- View OWN group information
- Personal attendance
- Group announcements
=== DATABASE ARCHITECTURE ===
CORE TABLES:
- users (authentication, roles, permissions)
- user_sessions (secure session management)
- bodies (6 main organizational units)
- care_groups (sub-units under bodies)
- mission_groups (operational units)
- members (individual participants)
- meetings (attendance tracking)
- activities (group activities)
- reports (performance metrics)
- activity_logs (audit trail)
SECURITY FEATURES:
- Password hashing (bcrypt)
- Session token management
- Role-based authorization
- SQL injection prevention
- XSS protection
- CSRF protection
- Activity logging
=== TECHNICAL STACK ===
BACKEND:
- PHP 8+ with PDO
- MySQL 8+ database
- RESTful API architecture
- Session-based authentication
- Object-oriented design
FRONTEND:
- Modern responsive HTML5
- Tailwind CSS for styling
- Font Awesome icons
- Chart.js for analytics
- Vanilla JavaScript/ES6+
- AJAX for dynamic updates
FEATURES:
- Multi-level dashboard system
- Real-time data updates
- Advanced search and filtering
- Data export (CSV, Excel, PDF)
- Performance analytics
- Meeting management
- Attendance tracking
- Report generation
- Activity logging
=== SPECIFIC IMPLEMENTATIONS ===
AUTHENTICATION SYSTEM:
```php
class AuthManager {
- login($username, $password)
- logout()
- requireRole($role)
- requireBodyAccess($bodyId)
- generateSessionToken()
- validateSession()
}
DASHBOARD SYSTEMS:
-
Team Leader Dashboard:
- Executive overview of all 6 bodies
- Performance comparison charts
- Top/bottom performing groups
- Province-wise statistics
- Export capabilities
-
Body Leader Dashboard:
- Body-specific management
- Care group management
- Mission group oversight
- Member management
- Body performance metrics
-
Care Leader Dashboard:
- Care group management
- Mission group coordination
- Meeting scheduling
- Member tracking
API ENDPOINTS:
- /api/auth.php (authentication)
- /api/bodies.php (body management)
- /api/care_groups.php (care group operations)
- /api/mission_groups.php (mission group operations)
- /api/members.php (member management)
- /api/reports.php (reporting system)
- /api/search.php (advanced search)
=== THAI LOCALIZATION ===
LANGUAGE: Full Thai interface
CULTURAL CONTEXT: Buddhist mission work terminology
DATE FORMAT: Thai Buddhist calendar support
CURRENCY: Thai Baht (฿)
PHONE FORMAT: Thai mobile numbers
ADDRESS: Thai address format (หมู่, ตำบล, อำเภอ, จังหวัด)
THAI TERMS:
- บอดี้ (Body)
- แคร์กรุ๊ป (Care Group)
- กลุ่มพันธกิจ (Mission Group)
- หัวหน้าแคร์ (Care Leader)
- ผู้ประสานงาน (Coordinator)
- การประชุม (Meeting)
- การเข้าร่วม (Attendance)
=== REAL DATA IMPLEMENTATION ===
USER ACCOUNTS:
- team_leader / teamleader123 (Team Leader)
- somdej_leader / password123 (บอดี้สมเด็จ)
- muang1_leader / password123 (บอดี้เมือง 1)
- muang2_leader / password123 (บอดี้เมือง 2)
- thakanto_leader / password123 (บอดี้ท่าคันโท)
- kuchinarai_leader / password123 (บอดี้กุฉินารายณ์)
- kamyai_leader / password123 (บอดี้คำใหญ่)
SAMPLE DATA:
- All 52 real mission groups with actual names
- Real village names with หมู่บ้าน numbers
- Actual care leader names and assignments
- Geographic data (districts, provinces)
- Meeting schedules and locations
=== OUTPUT REQUIREMENTS ===
DELIVERABLES:
- Complete database schema with sample data
- Full authentication and authorization system
- All 6 dashboard interfaces (role-specific)
- RESTful API with security
- Modern responsive UI
- Thai language interface
- Export and reporting system
- Administrative tools
- User management system
- Activity logging and audit trail
DEPLOYMENT:
- Production-ready PHP application
- MySQL database with indexes
- Secure session management
- Error handling and logging
- Performance optimization
- Scalable architecture
DOCUMENTATION:
- API documentation
- User manuals (Thai)
- Installation guide
- Security guidelines
- Database schema documentation
- Role permission matrix
Create a complete, production-ready Thai Mission Management System that handles the real organizational structure of Kalasin province with proper security, modern UI, and full functionality for all user roles.
## 🎮 Usage Instructions
### **การใช้งาน Master Prompt:**
1. **Copy Prompt ทั้งหมด** และใส่ใน AI System ที่รองรับ
2. **ระบุเพิ่มเติม** ถ้าต้องการ feature พิเศษ:
- "Add mobile app support"
- "Include SMS notifications"
- "Add advanced analytics"
- "Include payment tracking"
3. **ปรับแต่งตามต้องการ**:
- เปลี่ยนชื่อองค์กร
- เพิ่ม/ลด จำนวนบอดี้
- ปรับ Role และ Permission
- เปลี่ยนภาษา
### **ตัวอย่างการใช้:**
[Master Prompt] +
"Also include:
- SMS notification system for meeting reminders
- Mobile-responsive design optimized for tablets
- Financial tracking for group activities
- Document management system
- Event calendar integration
- Photo gallery for group activities"
## 📊 System Capabilities
### **ฟีเจอร์หลัก:**
- ✅ **Multi-Role Authentication**: 6 ระดับสิทธิ์
- ✅ **Real Data Structure**: ข้อมูลจริง 6 บอดี้ 52 กลุ่ม
- ✅ **Advanced Dashboard**: แดชบอร์ดเฉพาะบทบาท
- ✅ **Security System**: ระบบรักษาความปลอดภัยครบครัน
- ✅ **Thai Localization**: อินเทอร์เฟซภาษาไทยเต็มรูปแบบ
- ✅ **Export System**: ส่งออกรายงานหลายรูปแบบ
- ✅ **Real-time Updates**: อัปเดตข้อมูลแบบ Real-time
- ✅ **Mobile Responsive**: รองรับทุกอุปกรณ์
### **เทคโนโลยี:**
- **Backend**: PHP 8+ + MySQL 8+
- **Frontend**: HTML5 + Tailwind CSS + JavaScript
- **Security**: bcrypt + Session + CSRF Protection
- **Charts**: Chart.js + Advanced Analytics
- **Architecture**: RESTful API + MVC Pattern
## 🔧 Customization Options
### **ปรับแต่งได้:**
1. **เปลี่ยนโครงสร้างองค์กร**: เพิ่ม/ลด บอดี้และกลุ่ม
2. **ปรับสิทธิ์การเข้าถึง**: เพิ่ม Role ใหม่ หรือปรับ Permission
3. **เปลี่ยนภาษา**: รองรับภาษาอื่น ๆ
4. **เพิ่ม Module**: การเงิน, เอกสาร, ปฏิทิน
5. **ปรับ UI/UX**: เปลี่ยน Theme และ Layout
6. **เพิ่ม Integration**: API ภายนอก, SMS, Email
---
**Master Prompt ครบครัน - สร้างระบบจัดการพันธกิจบ้านแบบมืออาชีพ!** 🚀💻✨
*Ready to deploy - Production Grade Mission Management System*
Updated: 2025-06-05 07:08:53 UTC by jgarise