Code
Code
CUSTOMER {
int customer_id PK
string name
string phone
string email
}
EMPLOYEE {
int employee_id PK
string name
string role
string password_hash
}
SUPPLIER {
int supplier_id PK
string name
string contact_person
string phone
}
PRODUCT {
int product_id PK
string name
float price
int quantity_in_stock
int supplier_id FK
}
SALE {
int sale_id PK
datetime sale_date
float total_amount
int customer_id FK
int employee_id FK
}
SALE_ITEM {
int sale_id PK,FK
int product_id PK,FK
int quantity
float unit_price
}