gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
смоделируй базу данных аптеки с названием таблиц, атрибутов на английском языке и…
- User
смоделируй базу данных аптеки с названием таблиц, атрибутов на английском языке и указанием pk fk возле атрибутов
- Assistant
Название таблиц:
-
Table: Pharmacy Attributes:
- pharmacy_id (PK)
- pharmacy_name
-
Table: Medicine Attributes:
- medicine_id (PK)
- medicine_name
- manufacturer
- dosage_form
- expiration_date
-
Table: Prescription Attributes:
- prescription_id (PK)
- patient_id (FK)
- doctor_id (FK)
- issue_date
- expiry_date
-
Table: Patient Attributes:
- patient_id (PK)
- patient_name
- date_of_birth
- gender
-
Table: Doctor Attributes:
- doctor_id (PK)
- doctor_name
- specialization
-
Table: Purchase Attributes:
- purchase_id (PK)
- pharmacy_id (FK)
- medicine_id (FK)
- quantity
- purchase_date
-
Table: Sales Attributes:
- sale_id (PK)
- pharmacy_id (FK)
- medicine_id (FK)
- quantity
- sale_date
-