DB Fields
DB Fields
GSC (Gestion Salon de Coiffure) est une plateforme qui permet au salon de coiffure de gérer au
mieux le fonctionnement de leur activité au quotidien. GSC est repartie sous forme de module qui
sont les suivant ;
Utilisateur
Rôle
Permission
Employé
Client
Stock
Promotion
Paiement
Réservation
Suscription
Rapport
Facturation
Configuration
Performance
Notification
Agenda
Resource humaine
Salon
Catégories
Produits
Service
Inventory
Cash
Bank
Compte
Prestation(Order)
Entité
Adresse
Horaire
Nous avons au total 29 module que nous analyserons cas par cas.
NB :
#(Champs unique)
*(Champs requis)
Enum[]
Champs global :
1- Created_at
2- Updated_at
A) Champs et Relationnel
1) User :
- Username#
- Email#
- Password*
- Is_email_verify
- Email_verification_code
- Email_verification_code_send_at
- Email_verification_code_expired_at
- Groups
- permissions
- Is_active
- Is_staff
- Is_superuser
- Date_joined
- Last_login
2) Profile :
- User_id*
- Address_id
- First_name
- Last_name
- Avatar
- Gender
- Phone_number
- Date_of_birth
3) ParentAccount :
- Name*
- Slug
- Type[customer, supplier, employee]
- Credit
- Debit
4) Account :
- Parent_id*
- Name*
- Slug
- Credit
- Debit
5) Currency :
- Name*
- Code*
6) Country :
- Name*
- Code*
- Phone_number_code*
- Currency_id*
7) Region :
- Name*
- Code*
- Country_id*
8) City :
- Region_id*
- Name*
- Code*
9) Address :
- City_id*
- Quater
- Street
- Postal_code
10) Role(Group) :
- Name*
- Permissions
11) Cash :
- Salon_id*
- Name*
- Slug
- Code*
- Cash_type[sale, purchase, salary, charge]
12) CashSession :
- Cash_id*
- Name*
- Slug
- Code*
- Initial_amount
- User*
- State[open, close]
13) CashSessionLine :
- Session_id*
- Invoice_id*
- Amount*
- Reason
14) Invoice :
- Order_ref
- Salon_id
- Customer_id*
- Status[paid, unpaid]
- Invoice_number
- Due_date
- Paid_at
- Total_amount
- Invoice_type[purchase, sale, subscription]
15) InvoiceLine :
- Invoice_id*
- Content_type_id*
- Object_id*
- Object_name*
- Content_object
- Quantity*
- Unit_price*
- Total_unit
16) EntitySettings :
- Name*
- Service_total[manually, automatic]
17) OnyxSettings :
- Name*
- Plan_total_amount[mually, automatic]
18) SponsorshipConfiguration :
- Sponsorship_value*
- Sponsor_value*
- Fixed_amount
- State[active, inactive]
19) CustomerDiscountCode :
- Customer_id*
- Coupon_id*
20) Customer :
- User_id*
- Account*
- Points
- Discount_coupon
- Packages
- Sponsorship_code
- Sponsor_code
21) CustomerPackages :
- Package_id*
- Customer_id*
- Content_type_id*
- Object_id*
- Content_object
- Quantity*
-
22) Employee :
- User_id*
- Address_id*
- First_name*
- Last_name*
- Phone_number*
- Gender*
- Agenda_position*
- Interval_reservation*
- Available_online
23) Entiy :
- User_id*
- Address_id*
- Entity_name*
- Entity_short_name*
- Entity_email*
- Entity_phone_number*
- logo
- Subscription*
- Entity_access_code
- Owner_name*
- Owner_email*
- Owner_password*
- Owner_phone_number*
- Number_salon
- Is_active
- description
- web_page_url
24) Salon :
- Name*
- Address_id*
- Employees
- Open_days*
- Open_time*
- Close_time*
25) SalonImage :
- Salon_id*
- image
26) Employe :
- First_name
- Last_name
- Email
- phoneNumber
- address_id
- gender
- agenda_position
- Interval_reservation
- Available_for_online
- Created_at
- Updated_at
27) Schedule :
- Employee_id*
- Date*
- Day*
- Start_time*
- End_time
- Schedule_type[normal, vacation, recovery, sick, study, maternity, close, no-
appointment]
28) Agenda :
- Salon_id*
- Schedules
29) Reservation :
- Customer_id
- Date
- Employe_id
- Schedule_time
- Created_at
- Updated_at
30) Contrat :
- Employed_id
- Comission
- Start_date
- End_date
- Type_contrat
- Monthly_salary
- Hourly_salary
- Professional_id_number(PIN)
- Created_at
- Updated_at
31) Category :
- Name*
- Slug
- Category_type[ ‘produit’, ‘service’]
32) Product :
- Category_id*
- Name*
- Slug
- Min_value*
- Max_value*
- Product_type[sale, professional, subscription]*
- Unit*
- Alert*
- Visible_online*
- description
- Image
- Purchase_price*
- Sale_price*
33) Stock :
- Product_id*
- Salon_id*
- Quantiy
- Quantity_alert
- Created_at
- Updated_at
34) Inventory :
- Name*
- slug
- salon_id*
- user_id
- date*
35) InventoryLine :
- Inventory_id*
- Stock_id*
- Old_quantity
- Adjusted_quantity*
36) Service :
Catrgoty_id*
Name*
Slug
Description
Image
Alert*
Bookable_on_calender
Bookable_online
Bookable_on_homepahe
Session_with_participant
Salon_id*
Description
Sale_price
Point
37) Service_lines :
- Service_id*
- Service_account_id*
- Name*
- Time
- Service_break
- Points
- Sale_price
38) ServiceAccount :
- Name*
39) Package :
- Name*
- Slug
- Amount*
40) PackageItem :
- Package_id*
- Content_type_id*
- Object_id*
- Content_object
- Quantity*
41) DiscountCoupon :
- Name*
- Slug
- Code*
- Percentage*
42) Plan :
- Name*
- Billing_interval
- Product_pricings*
- Total_amount
43) Subscription :
- Plan_id*
- user_id*
- Start_at
- End_at
- Renewed_at
- Invoice_id*
- Status[active, inactive]
- Renewed_at
- Renewed_subscription_id
- Upgraded_at
- Upgraded_to_plan_id
- Downgraded_at
- Downgraded_to_plan_id
- Cancelled_at
- Created_at
- Updated_at
- Deleted_at
44) Customersubscription :
- Customer_id*
- Content_type*
- Object_id*
- Content_object
- Invoice_id*
- State[active, inactive]
45) Product_pricing :
- Product_id*
- Quantity*
- Price
- Total_unit
46) Order :
- Salon_id*
- Order_identification
- Customer_id*
- Customer_name*
- Date*
- State[pending, done]
- Start_at
- total
- End_at
- Created_at
- Updated_at
47) Order_line :
- Order_id*
- Content_type_id*
- Object_id*
- Object_name*
- Content_object
- Employee_id*
- Unit_price
- Quantity
- Total_unit_price
- Start_at
- End_at
- Available
- Created_at
- Updated_at