- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
1 KiB
1 KiB
| name | description |
|---|---|
| MySQL Schema Review | Reviews database tables, column types, default values, and foreign keys to enforce naming and structure standards. |
Skill: MySQL Schema Review
1. Purpose
Enforce uniform database design rules, naming conventions, and integrity constraints.
2. When to Use
Before applying any migration or altering table columns.
3. Step-by-Step Checklist
- Review column types:
- Verify proper limits (e.g.
VARCHAR(255)instead of unbounded text where possible). - Ensure primary keys use appropriate types (e.g.
BIGINT AUTO_INCREMENTorVARCHAR(36)UUIDs). - Check dates use
TIMESTAMPorDATETIMEwith timezone awareness.
- Verify proper limits (e.g.
- Naming Standards:
- Tables and columns must use lowercase snake_case.
- Foreign key columns must follow
parent_table_idnaming pattern.
- Validate foreign key constraints are defined with correct cascade or restrict policies.
- Ensure audit fields (
created_at,updated_at,deleted_at) are present on transactional tables.