text
stringlengths 1.32k
4.07k
|
|---|
<s>[INST] give me database schema for the HR system [/INST] 1. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID - Date of Hire - DepartmentID (Foreign Key)2. **Departments:** - DepartmentID (Primary Key) - Department Name - ManagerID (Foreign Key)3. **Job Positions:** - PositionID (Primary Key) - Position Title - Job Description4. **Salaries:** - SalaryID (Primary Key) - EmployeeID (Foreign Key) - Salary Amount - Salary Start Date - Salary End Date5. **Leave Requests:** - LeaveRequestID (Primary Key) - EmployeeID (Foreign Key) - Leave Type - Start Date - End Date - Status (e.g., Pending, Approved, Rejected) - Reason6. **Attendance Records:** - AttendanceID (Primary Key) - EmployeeID (Foreign Key) - Date - Clock In Time - Clock Out Time - Total Hours7. **Training Programs:** - TrainingID (Primary Key) - Training Name - Trainer - Start Date - End Date - Location - Description8. **Performance Reviews:** - ReviewID (Primary Key) - EmployeeID (Foreign Key) - Review Date - Reviewer Name - Performance Rating - Comments9. **Benefits and Deductions:** - BenefitDeductionID (Primary Key) - EmployeeID (Foreign Key) - Benefit/Deduction Type - Amount - Start Date - End Date - Description10. **Employee Documents:** - DocumentID (Primary Key) - EmployeeID (Foreign Key) - Document Name - Document Type (e.g., Resume, Certificates) - Upload Date - Expiration Date11. **Employee Skills:** - SkillID (Primary Key) - EmployeeID (Foreign Key) - Skill Name - Skill Level - Certification Date - Expiry Date12. **Employee Emergency Contacts:** - ContactID (Primary Key) - EmployeeID (Foreign Key) - Contact Name - Relationship - Contact Number13. **Employee Dependent Information:** - DependentID (Primary Key) - EmployeeID (Foreign Key) - Dependent Name - Date of Birth - Relationship14. **Termination Records:** - TerminationID (Primary Key) - EmployeeID (Foreign Key) - Termination Date - Reason for Termination - Exit Interview Notes15. **Employee Promotions:** - PromotionID (Primary Key) - EmployeeID (Foreign Key) - Promotion Date - New Job Position (Foreign Key) - Salary Increase </s>
|
<s>[INST] give me database schema for the Project Management system [/INST] 1. **Projects:** - ProjectID (Primary Key) - Project Name - Project Description - Start Date - End Date - Project Manager (Foreign Key) - Status (e.g., In Progress, Completed)2. **Tasks:** - TaskID (Primary Key) - Task Name - Task Description - ProjectID (Foreign Key) - Assignee (Foreign Key) - Start Date - Due Date - Priority (e.g., High, Medium, Low) - Status (e.g., To Do, In Progress, Completed)3. **Users (Team Members):** - UserID (Primary Key) - First Name - Last Name - Email - Role (e.g., Developer, Designer, Manager) - Department - Phone Number - Skills4. **Teams:** - TeamID (Primary Key) - Team Name - Team Leader (Foreign Key) - Members (List of UserIDs)5. **Time Tracking:** - TimeTrackingID (Primary Key) - UserID (Foreign Key) - TaskID (Foreign Key) - Date - Hours Worked6. **Attachments (for Tasks and Projects):** - AttachmentID (Primary Key) - TaskID (Foreign Key, optional) - ProjectID (Foreign Key, optional) - File Name - File Type - File Size - Upload Date7. **Comments (for Tasks and Projects):** - CommentID (Primary Key) - TaskID (Foreign Key, optional) - ProjectID (Foreign Key, optional) - UserID (Foreign Key) - Comment Text - Comment Date8. **Project Categories:** - CategoryID (Primary Key) - Category Name9. **Task Categories:** - CategoryID (Primary Key) - Category Name10. **Project Dependencies:** - DependencyID (Primary Key) - ProjectID (Foreign Key) - Dependent ProjectID (Foreign Key) - Dependency Type (e.g., Finish-to-Start, Start-to-Start) - Dependency Description11. **Task Dependencies:** - DependencyID (Primary Key) - TaskID (Foreign Key) - Dependent TaskID (Foreign Key) - Dependency Type (e.g., Finish-to-Start, Start-to-Start) - Dependency Description12. **Project Notes:** - NoteID (Primary Key) - ProjectID (Foreign Key) - UserID (Foreign Key) - Note Text - Note Date13. **Task Notes:** - NoteID (Primary Key) - TaskID (Foreign Key) - UserID (Foreign Key) - Note Text - Note Date14. **Task Assignments (for tracking who's assigned to a task):** - AssignmentID (Primary Key) - TaskID (Foreign Key) - UserID (Foreign Key) - Assignment Date15. **Task Checklists (for creating task-specific checklists):** - ChecklistID (Primary Key) - TaskID (Foreign Key) - Checklist Item - Completion Status (e.g., Complete, Incomplete) </s>
|
<s>[INST] give me database schema for the ERPs system [/INST] 1. **Products:** - ProductID (Primary Key) - Product Name - Description - Category (e.g., Electronics, Apparel) - SupplierID (Foreign Key) - Unit Price - Quantity in Stock - Reorder Level - Image2. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Email - Phone Number - Address - Payment Terms - Notes3. **Customers:** - CustomerID (Primary Key) - Customer Name - Contact Person - Contact Email - Phone Number - Billing Address - Shipping Address - Credit Limit - Payment Terms4. **Orders:** - OrderID (Primary Key) - CustomerID (Foreign Key) - Order Date - Delivery Date - SalespersonID (Foreign Key) - Order Total - Order Status (e.g., Pending, Shipped, Delivered)5. **Order Details (Line Items):** - OrderDetailID (Primary Key) - OrderID (Foreign Key) - ProductID (Foreign Key) - Quantity - Unit Price - Line Total6. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID - Job Position (Foreign Key) - Department (Foreign Key) - ManagerID (Foreign Key) - Salary - Employment Start Date - Employment End Date - Notes7. **Departments:** - DepartmentID (Primary Key) - Department Name - ManagerID (Foreign Key)8. **Asset Management:** - AssetID (Primary Key) - Asset Name - Asset Type (e.g., Equipment, Vehicle) - Purchase Date - Purchase Cost - Depreciation Rate - Current Value - Assigned EmployeeID (Foreign Key)9. **Financial Transactions:** - TransactionID (Primary Key) - Transaction Date - Description - Amount - Type (e.g., Expense, Revenue) - Category (e.g., Rent, Salary, Sales) - EmployeeID (Foreign Key) - CustomerID (Foreign Key) - SupplierID (Foreign Key)10. **Inventory Transactions:** - TransactionID (Primary Key) - Transaction Date - ProductID (Foreign Key) - Transaction Type (e.g., Purchase, Sale, Transfer) - Quantity - Unit Cost - EmployeeID (Foreign Key) - SupplierID (Foreign Key) - CustomerID (Foreign Key)11. **Work Orders:** - WorkOrderID (Primary Key) - OrderID (Foreign Key) - ProductID (Foreign Key) - EmployeeID (Foreign Key) - Start Date - End Date - Status (e.g., In Progress, Completed) - Notes12. **Manufacturing Processes:** - ProcessID (Primary Key) - Process Name - Description - Work Center (e.g., Machining, Assembly) - Setup Time - Run Time - Labor Cost - Overhead Cost13. **Quality Control:** - QCID (Primary Key) - ProductID (Foreign Key) - EmployeeID (Foreign Key) - QC Date - Pass/Fail Status - Defect Description14. **Vendors (for sourcing raw materials):** - VendorID (Primary Key) - Vendor Name - Contact Person - Contact Email - Phone Number - Address - Payment Terms - Notes15. **Production Planning:** - PlanID (Primary Key) - ProductID (Foreign Key) - Quantity Planned - Planned Start Date - Planned End Date - Status (e.g., Planned, In Progress, Completed)16. **Purchase Orders:** - PurchaseOrderID (Primary Key) - VendorID (Foreign Key) - EmployeeID (Foreign Key) - Order Date - Expected Delivery Date - Total Amount17. **Bill of Materials (BOM):** - BOMID (Primary Key) - ProductID (Foreign Key) - Component ProductID (Foreign Key) - Quantity Required - Unit of Measure18. **Sales Quotes:** - QuoteID (Primary Key) - CustomerID (Foreign Key) - EmployeeID (Foreign Key) - Quote Date - Quote Total19. **Invoices:** - InvoiceID (Primary Key) - CustomerID (Foreign Key) - EmployeeID (Foreign Key) - Invoice Date - Due Date - Invoice Total - Status (e.g., Unpaid, Paid, Overdue)20. **Payment Transactions (for invoices):** - PaymentID (Primary Key) - InvoiceID (Foreign Key) - Payment Date - Payment Amount - Payment Method (e.g., Credit Card, Check, Bank Transfer)</s>
|
<s>[INST] give me database schema for a Customer Relationship Management (CRM) system [/INST]1. **Contacts:** - ContactID (Primary Key) - First Name - Last Name - Email - Phone Number - Address - Company Name - Job Title - Birthdate - Notes2. **Companies:** - CompanyID (Primary Key) - Company Name - Industry - Website - Phone Number - Address - Notes3. **Opportunities:** - OpportunityID (Primary Key) - Opportunity Name - ContactID (Foreign Key) - CompanyID (Foreign Key) - Sales Stage (e.g., Prospecting, Negotiation, Closed Won) - Expected Close Date - Amount - Probability of Close - Notes4. **Activities:** - ActivityID (Primary Key) - ContactID (Foreign Key, optional) - CompanyID (Foreign Key, optional) - OpportunityID (Foreign Key, optional) - Activity Type (e.g., Call, Meeting, Email) - Date and Time - Duration - Subject - Description - Attendees (List of ContactIDs)5. **Sales Leads:** - LeadID (Primary Key) - Lead Source (e.g., Advertisement, Referral) - Lead Status (e.g., New, Qualified, Unqualified) - ContactID (Foreign Key) - CompanyID (Foreign Key) - Assigned To (Foreign Key) - Lead Date - Notes6. **Tasks:** - TaskID (Primary Key) - ContactID (Foreign Key, optional) - CompanyID (Foreign Key, optional) - OpportunityID (Foreign Key, optional) - Task Type (e.g., Follow-up, To-Do, Reminder) - Due Date - Task Description - Task Status (e.g., Open, Completed) - Assigned To (Foreign Key) - Notes7. **Emails:** - EmailID (Primary Key) - ContactID (Foreign Key, optional) - CompanyID (Foreign Key, optional) - OpportunityID (Foreign Key, optional) - Sender - Recipients (List of Email Addresses) - Subject - Date and Time - Email Content8. **Sales Teams:** - TeamID (Primary Key) - Team Name - Team Leader (Foreign Key) - Members (List of ContactIDs)9. **Quotes:** - QuoteID (Primary Key) - OpportunityID (Foreign Key) - ContactID (Foreign Key) - CompanyID (Foreign Key) - Quote Date - Expiration Date - Quote Total - Status (e.g., Draft, Sent, Accepted)10. **Notes:** - NoteID (Primary Key) - ContactID (Foreign Key, optional) - CompanyID (Foreign Key, optional) - OpportunityID (Foreign Key, optional) - Note Type (e.g., General, Meeting, Call) - Note Date - Note Content</s>
|
<s>[INST] give me database schema for a Content Management System (CMS) system [/INST]1. **Pages:** - PageID (Primary Key) - Page Title - Page Slug (URL-friendly identifier) - Content (Text, HTML, or Markdown) - Author (User ID, Foreign Key) - Publication Date - Last Modified Date - Status (e.g., Draft, Published)2. **Categories:** - CategoryID (Primary Key) - Category Name - Category Slug (URL-friendly identifier) - Description3. **Tags:** - TagID (Primary Key) - Tag Name - Tag Slug (URL-friendly identifier)4. **Comments:** - CommentID (Primary Key) - PageID (Foreign Key) - Author (User ID, Foreign Key) - Comment Date - Comment Text - Status (e.g., Approved, Pending, Spam)5. **Users (Authors/Editors):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - User Role (e.g., Admin, Editor, Contributor) - Registration Date - Last Login Date - Profile Picture6. **Media Library (for storing uploaded files):** - MediaID (Primary Key) - File Name - File Type - File Size - Upload Date - Uploaded By (User ID, Foreign Key) - Description7. **Templates (for page layout and design):** - TemplateID (Primary Key) - Template Name - Template Content (HTML, CSS) - Template Type (e.g., Page, Post, Category) - Template Description8. **Menu Items (for navigation menus):** - MenuItemID (Primary Key) - Menu Name - Parent Menu Item (Foreign Key for nested menus) - PageID (Foreign Key) - URL (for external links) - Order (position in the menu) - Status (e.g., Published, Unpublished)9. **Page Revisions (for tracking changes):** - RevisionID (Primary Key) - PageID (Foreign Key) - Author (User ID, Foreign Key) - Revision Date - Content (Text, HTML, or Markdown)10. **Settings (for CMS configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description11. **User Roles and Permissions:** - RoleID (Primary Key) - Role Name - Description12. **User Role Permissions:** - PermissionID (Primary Key) - RoleID (Foreign Key) - Permission Name - Description13. **URL Redirects (for managing redirects):** - RedirectID (Primary Key) - Source URL - Target URL - Redirect Type (e.g., Permanent 301, Temporary 302) - Redirect Date - Redirect Author (User ID, Foreign Key)14. **Analytics and Tracking (for monitoring website usage):** - AnalyticsID (Primary Key) - PageID (Foreign Key) - Visitor IP Address - Visit Date and Time - User Agent (browser and device information) - Referer URL - User Location</s>
|
<s>[INST] give me database schema for a Learning Management System (LMS) system [/INST]1. **Courses:** - CourseID (Primary Key) - Course Name - Course Code (Unique Identifier) - Description - Instructor (User ID, Foreign Key) - Start Date - End Date - Enrollment Start Date - Enrollment End Date - Status (e.g., Draft, Published)2. **Modules (Sections or Topics within a Course):** - ModuleID (Primary Key) - CourseID (Foreign Key) - Module Name - Description - Position (Order in the Course) - Content (Text, HTML, or Media) - Status (e.g., Draft, Published)3. **Users (Students and Instructors):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Student, Instructor) - Registration Date - Last Login Date - Profile Picture4. **Enrollments (Course Registrations):** - EnrollmentID (Primary Key) - CourseID (Foreign Key) - UserID (Foreign Key) - Enrollment Date - Completion Status (e.g., In Progress, Completed) - Completion Date - Grade/Score5. **Assignments:** - AssignmentID (Primary Key) - CourseID (Foreign Key) - ModuleID (Foreign Key) - Assignment Name - Description - Due Date - Maximum Points - Status (e.g., Open, Closed)6. **Submissions (Student Assignment Submissions):** - SubmissionID (Primary Key) - AssignmentID (Foreign Key) - UserID (Foreign Key) - Submission Date - File(s) Uploaded - Comments (Instructor's feedback) - Grade/Score7. **Quizzes:** - QuizID (Primary Key) - CourseID (Foreign Key) - ModuleID (Foreign Key) - Quiz Name - Description - Time Limit - Number of Questions - Status (e.g., Open, Closed)8. **Questions (for Quizzes and Assessments):** - QuestionID (Primary Key) - QuizID (Foreign Key) - Question Type (e.g., Multiple Choice, True/False) - Question Text - Correct Answer(s) - Options (for Multiple Choice)9. **Quiz Attempts (Student Quiz Attempts):** - AttemptID (Primary Key) - QuizID (Foreign Key) - UserID (Foreign Key) - Attempt Date - Duration - Score - Status (e.g., Completed, In Progress)10. **Course Certificates (for completion certificates):** - CertificateID (Primary Key) - CourseID (Foreign Key) - UserID (Foreign Key) - Issue Date - Certificate URL/Path11. **Course Discussions (Student and Instructor Interaction):** - DiscussionID (Primary Key) - CourseID (Foreign Key) - ModuleID (Foreign Key) - UserID (Foreign Key) - Discussion Date - Discussion Text12. **Notifications (system-generated and user-specific):** - NotificationID (Primary Key) - UserID (Foreign Key) - Notification Type (e.g., Course Update, Assignment Due) - Notification Text - Notification Date - Status (e.g., Unread, Read)13. **Course Ratings and Reviews (Student Feedback):** - ReviewID (Primary Key) - CourseID (Foreign Key) - UserID (Foreign Key) - Rating (e.g., 1-5 stars) - Review Text - Review Date</s>
|
<s>[INST] give me database schema for a Hospital Information System (HIS) system [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Address - Phone Number - Email - Insurance Information - Emergency Contact Information2. **Admissions:** - AdmissionID (Primary Key) - PatientID (Foreign Key) - Admission Date - Discharge Date - Admitting Physician (Doctor ID, Foreign Key) - Discharging Physician (Doctor ID, Foreign Key) - Room Number - Admission Type (e.g., Emergency, Scheduled) - Admission Status (e.g., Admitted, Discharged)3. **Doctors:** - DoctorID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Specialization - License Number - Department (e.g., Cardiology, Pediatrics) - Notes4. **Nurses:** - NurseID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Department (e.g., ICU, Maternity) - Shift (e.g., Morning, Evening, Night) - Notes5. **Appointments:** - AppointmentID (Primary Key) - PatientID (Foreign Key) - DoctorID (Foreign Key) - Appointment Date and Time - Appointment Type (e.g., Consultation, Follow-up) - Appointment Status (e.g., Scheduled, Completed, Canceled)6. **Prescriptions:** - PrescriptionID (Primary Key) - PatientID (Foreign Key) - DoctorID (Foreign Key) - Prescription Date - Medication Name - Dosage - Frequency - Duration - Notes7. **Medications:** - MedicationID (Primary Key) - Medication Name - Description - Manufacturer - Dosage Form - Units in Stock - Unit Price - Expiration Date8. **Lab Tests:** - LabTestID (Primary Key) - PatientID (Foreign Key) - DoctorID (Foreign Key) - Test Name - Test Date - Test Result - Reference Range - Lab Technician (Nurse ID, Foreign Key) - Notes9. **Surgery Schedule:** - SurgeryID (Primary Key) - PatientID (Foreign Key) - DoctorID (Foreign Key) - Surgery Date and Time - Procedure - Operating Room - Anesthesiologist (Doctor ID, Foreign Key) - Notes10. **Billing and Invoices:** - InvoiceID (Primary Key) - PatientID (Foreign Key) - AdmissionID (Foreign Key) - DoctorID (Foreign Key) - Invoice Date - Items and Services - Total Amount - Payment Status (e.g., Unpaid, Paid, Partial)11. **Hospital Rooms:** - RoomID (Primary Key) - Room Number - Room Type (e.g., Single, Double, ICU) - Availability Status (e.g., Occupied, Available) - Daily Rate - Notes12. **Departments:** - DepartmentID (Primary Key) - Department Name - Head of Department (Doctor ID, Foreign Key) - Description13. **Patient History and Records:** - RecordID (Primary Key) - PatientID (Foreign Key) - DoctorID (Foreign Key) - Record Date - Diagnosis - Treatment - Notes14. **Medical Equipment:** - EquipmentID (Primary Key) - Equipment Name - Description - Manufacturer - Purchase Date - Current Condition - Location (e.g., Room Number)15. **Pharmacy Inventory:** - InventoryID (Primary Key) - MedicationID (Foreign Key) - Quantity in Stock - Last Restocked Date - Supplier (Supplier ID, Foreign Key) - Notes</s>
|
<s>[INST] give me a database schema for a Payroll System [/INST]1. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Social Security Number (SSN) - Employee ID (Unique Identifier) - Employment Start Date - Employment End Date (if applicable) - Department - Job Position - Supervisor ID (Foreign Key, references EmployeeID) - Salary - Hourly Rate (if applicable) - Tax Exemptions - Bank Account Number (for direct deposit)2. **Payroll Periods:** - PayrollPeriodID (Primary Key) - Start Date - End Date - Payroll Date - Status (e.g., Open, Closed)3. **Payroll Categories (Earnings and Deductions):** - CategoryID (Primary Key) - Category Name - Description - Category Type (e.g., Earnings, Deductions) - Taxable (boolean) - Percentage (for tax deductions) - Fixed Amount (for fixed earnings/deductions)4. **Employee Earnings:** - EarningID (Primary Key) - EmployeeID (Foreign Key) - PayrollPeriodID (Foreign Key) - Earning Category (Foreign Key) - Amount5. **Employee Deductions:** - DeductionID (Primary Key) - EmployeeID (Foreign Key) - PayrollPeriodID (Foreign Key) - Deduction Category (Foreign Key) - Amount6. **Taxes:** - TaxID (Primary Key) - Tax Name - Description - Tax Rate - Taxable Income Range (e.g., Tax Rate applies to income between $X and $Y)7. **Employee Taxes:** - EmployeeTaxID (Primary Key) - EmployeeID (Foreign Key) - PayrollPeriodID (Foreign Key) - TaxID (Foreign Key) - Taxable Income - Tax Amount8. **Employer Taxes:** - EmployerTaxID (Primary Key) - PayrollPeriodID (Foreign Key) - TaxID (Foreign Key) - Tax Amount (Employer's portion)9. **Payroll History:** - PayrollHistoryID (Primary Key) - EmployeeID (Foreign Key) - PayrollPeriodID (Foreign Key) - Net Pay - Gross Pay - Total Deductions - Total Earnings - Payroll Date10. **Benefits and Allowances:** - BenefitID (Primary Key) - EmployeeID (Foreign Key) - Benefit Name - Description - Benefit Amount11. **Bank Information (for direct deposit):** - BankInfoID (Primary Key) - EmployeeID (Foreign Key) - Bank Name - Account Type (e.g., Savings, Checking) - Routing Number - Account Number12. **Payroll Reports:** - ReportID (Primary Key) - Report Name - Report Date - Report Content (could be generated or stored externally)13. **Payroll Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description</s>
|
<s>[INST] give me a database schema for a Financial Management System [/INST]1. **Accounts:** - AccountID (Primary Key) - Account Name - Account Number (Unique Identifier) - Account Type (e.g., Checking, Savings, Credit Card) - Balance - Currency - Bank Name (for bank accounts) - Credit Limit (for credit card accounts) - Interest Rate (for savings and credit card accounts) - Description2. **Transactions:** - TransactionID (Primary Key) - AccountID (Foreign Key) - Transaction Date - Transaction Type (e.g., Deposit, Withdrawal, Transfer, Payment) - Amount - Payee/Payer (for transfers and payments) - Description3. **Categories (for categorizing transactions):** - CategoryID (Primary Key) - Category Name - Parent Category (for hierarchical categorization) - Description4. **Budgets:** - BudgetID (Primary Key) - Budget Name - Budget Amount - Start Date - End Date - CategoryID (Foreign Key) - Description5. **Income Sources:** - IncomeSourceID (Primary Key) - Source Name - Description6. **Expenses:** - ExpenseID (Primary Key) - Expense Name - Expense Amount - Expense Date - CategoryID (Foreign Key) - Payment Method (e.g., Cash, Credit Card, Check) - Description7. **Financial Goals:** - GoalID (Primary Key) - Goal Name - Goal Amount - Target Date - Description8. **Investments:** - InvestmentID (Primary Key) - Investment Name - Investment Type (e.g., Stocks, Bonds, Real Estate) - Purchase Date - Purchase Price - Quantity - Current Value - Description9. **Income Transactions:** - IncomeTransactionID (Primary Key) - IncomeSourceID (Foreign Key) - Transaction Date - Amount - Description10. **Debts (Loans and Liabilities):** - DebtID (Primary Key) - Debt Name - Debt Type (e.g., Mortgage, Student Loan, Credit Card Debt) - Principal Amount - Interest Rate - Monthly Payment - Loan Term (e.g., 15 years, 30 years) - Description11. **Savings Goals:** - SavingsGoalID (Primary Key) - Goal Name - Target Amount - Current Balance - Description12. **Financial Reports:** - ReportID (Primary Key) - Report Name - Report Type (e.g., Balance Sheet, Income Statement, Cash Flow) - Report Date - Report Content (could be generated or stored externally)13. **Financial Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description14. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture15. **User Financial Goals:** - UserGoalID (Primary Key) - UserID (Foreign Key) - GoalID (Foreign Key) - Contribution Amount - Target Date - Description</s>
|
<s>[INST] give me a database schema for an Inventory Control System [/INST]1. **Products:** - ProductID (Primary Key) - Product Name - SKU (Stock Keeping Unit, Unique Identifier) - Description - Category - Supplier (Supplier ID, Foreign Key) - Cost Price - Selling Price - Quantity in Stock - Reorder Level - Last Reorder Date - Status (e.g., Active, Discontinued)2. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Phone Number - Email - Address - Notes3. **Orders:** - OrderID (Primary Key) - Order Number (Unique Identifier) - Supplier (Supplier ID, Foreign Key) - Order Date - Expected Delivery Date - Total Cost - Order Status (e.g., Pending, Shipped, Received)4. **Order Details (Line Items in an Order):** - OrderDetailID (Primary Key) - OrderID (Foreign Key) - ProductID (Foreign Key) - Quantity Ordered - Unit Price - Total Price - Status (e.g., Pending, Shipped)5. **Customers:** - CustomerID (Primary Key) - Customer Name - Contact Person - Phone Number - Email - Address - Notes6. **Sales Orders:** - SalesOrderID (Primary Key) - Order Number (Unique Identifier) - Customer (CustomerID, Foreign Key) - Order Date - Total Amount - Order Status (e.g., Pending, Shipped, Delivered)7. **Sales Order Details (Line Items in a Sales Order):** - SalesOrderDetailID (Primary Key) - SalesOrderID (Foreign Key) - ProductID (Foreign Key) - Quantity Sold - Unit Price - Total Price - Status (e.g., Pending, Shipped)8. **Inventory Adjustments (for manual adjustments):** - AdjustmentID (Primary Key) - ProductID (Foreign Key) - Adjustment Date - Adjustment Type (e.g., Increase, Decrease) - Adjustment Quantity - Reason - Notes9. **Inventory Transfers (between locations):** - TransferID (Primary Key) - ProductID (Foreign Key) - Source Location - Destination Location - Transfer Date - Transfer Quantity - Notes10. **Locations (for multiple inventory storage locations):** - LocationID (Primary Key) - Location Name - Description11. **Product Categories:** - CategoryID (Primary Key) - Category Name - Description12. **Product Reviews:** - ReviewID (Primary Key) - ProductID (Foreign Key) - Customer (CustomerID, Foreign Key) - Review Date - Rating (e.g., 1-5 stars) - Review Text13. **Product Images:** - ImageID (Primary Key) - ProductID (Foreign Key) - Image URL/Path - Description14. **Inventory Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description15. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Procurement and Vendor Management System [/INST]1. **Vendors:** - VendorID (Primary Key) - Vendor Name - Contact Person - Phone Number - Email - Address - Vendor Type (e.g., Supplier, Service Provider) - Notes2. **Purchase Orders:** - PurchaseOrderID (Primary Key) - Purchase Order Number (Unique Identifier) - Vendor (VendorID, Foreign Key) - Order Date - Expected Delivery Date - Total Amount - Purchase Order Status (e.g., Draft, Approved, Shipped)3. **Purchase Order Details (Line Items in a Purchase Order):** - OrderDetailID (Primary Key) - PurchaseOrderID (Foreign Key) - Product Name - Description - Quantity Ordered - Unit Price - Total Price - Status (e.g., Pending, Shipped)4. **Goods Receipts (for recording received items):** - GoodsReceiptID (Primary Key) - PurchaseOrderID (Foreign Key) - Received Date - Received By (User ID, Foreign Key) - Quantity Received - Status (e.g., Received, Partially Received) - Notes5. **Invoices (from vendors):** - InvoiceID (Primary Key) - Vendor (VendorID, Foreign Key) - Invoice Number (Unique Identifier) - Invoice Date - Due Date - Total Amount - Invoice Status (e.g., Pending, Paid)6. **Invoice Details (Line Items in an Invoice):** - InvoiceDetailID (Primary Key) - InvoiceID (Foreign Key) - Product Name - Description - Quantity - Unit Price - Total Price7. **Payments (to vendors):** - PaymentID (Primary Key) - InvoiceID (Foreign Key) - Payment Date - Payment Amount - Payment Method (e.g., Check, Bank Transfer) - Notes8. **Vendor Contracts (for managing vendor agreements):** - ContractID (Primary Key) - Vendor (VendorID, Foreign Key) - Contract Number (Unique Identifier) - Start Date - End Date - Contract Terms - Notes9. **Vendor Reviews and Ratings:** - ReviewID (Primary Key) - Vendor (VendorID, Foreign Key) - Reviewer (User ID, Foreign Key) - Review Date - Rating (e.g., 1-5 stars) - Review Text10. **Vendor Categories:** - CategoryID (Primary Key) - Category Name - Description11. **Vendor Contacts (for managing vendor relationships):** - ContactID (Primary Key) - Vendor (VendorID, Foreign Key) - Contact Name - Contact Email - Contact Phone Number - Contact Role - Notes12. **Procurement Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description13. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Warehouse Management System (WMS) [/INST]1. **Warehouses:** - WarehouseID (Primary Key) - Warehouse Name - Location - Warehouse Manager (User ID, Foreign Key) - Description2. **Products:** - ProductID (Primary Key) - Product Name - SKU (Stock Keeping Unit, Unique Identifier) - Description - Category - Unit of Measure (e.g., Each, Box, Pallet) - Cost Price - Selling Price - Weight - Dimensions - Hazardous Material (boolean) - Reorder Level - Last Reorder Date - Status (e.g., Active, Discontinued)3. **Product Inventory:** - InventoryID (Primary Key) - ProductID (Foreign Key) - WarehouseID (Foreign Key) - Quantity On Hand - Quantity Committed (for pending orders) - Quantity Available (calculated) - Shelf Location - Last Stocked Date - Status (e.g., In Stock, Out of Stock)4. **Orders:** - OrderID (Primary Key) - Order Number (Unique Identifier) - Customer (Customer ID, Foreign Key) - Order Date - Expected Delivery Date - Total Amount - Order Status (e.g., Processing, Shipped)5. **Order Details (Line Items in an Order):** - OrderDetailID (Primary Key) - OrderID (Foreign Key) - ProductID (Foreign Key) - Quantity Ordered - Unit Price - Total Price - Status (e.g., Pending, Shipped)6. **Shipments (for tracking shipped items):** - ShipmentID (Primary Key) - OrderID (Foreign Key) - Shipment Date - Shipment Carrier - Tracking Number - Estimated Arrival Date - Status (e.g., In Transit, Delivered)7. **Receiving (for recording received items):** - ReceivingID (Primary Key) - ShipmentID (Foreign Key) - Received Date - Received By (User ID, Foreign Key) - Quantity Received - Notes8. **Stock Transfers (between warehouses):** - TransferID (Primary Key) - ProductID (Foreign Key) - Source Warehouse - Destination Warehouse - Transfer Date - Transfer Quantity - Notes9. **Stock Adjustments (for manual adjustments):** - AdjustmentID (Primary Key) - ProductID (Foreign Key) - WarehouseID (Foreign Key) - Adjustment Date - Adjustment Type (e.g., Increase, Decrease) - Adjustment Quantity - Reason - Notes10. **Warehouse Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - WarehouseID (Foreign Key) - Job Title - Hire Date - Notes11. **Picking and Packing (for order fulfillment):** - PickingID (Primary Key) - OrderDetailID (Foreign Key) - Picker (Employee ID, Foreign Key) - Picking Date - Picked Quantity - Packer (Employee ID, Foreign Key) - Packing Date - Packed Quantity12. **Warehouse Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description13. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Production Planning and Control System [/INST]1. **Products:** - ProductID (Primary Key) - Product Name - SKU (Stock Keeping Unit, Unique Identifier) - Description - Category - Unit of Measure (e.g., Each, Box, Pallet) - Cost Price - Selling Price - Weight - Dimensions - Hazardous Material (boolean) - Status (e.g., Active, Discontinued)2. **Bills of Materials (BOM):** - BOMID (Primary Key) - ProductID (Foreign Key) - Component ProductID (Foreign Key) - Quantity Required - UOM (Unit of Measure) - Notes3. **Production Orders:** - ProductionOrderID (Primary Key) - Order Number (Unique Identifier) - Product (ProductID, Foreign Key) - Order Date - Due Date - Priority (e.g., High, Medium, Low) - Quantity Ordered - Order Status (e.g., Planned, In Progress, Completed)4. **Production Order Details (Line Items in a Production Order):** - OrderDetailID (Primary Key) - ProductionOrderID (Foreign Key) - Component Product (ProductID, Foreign Key) - Quantity Required - UOM (Unit of Measure) - Status (e.g., Pending, In Progress, Completed)5. **Work Centers (Production Workstations):** - WorkCenterID (Primary Key) - Work Center Name - Description - Maximum Capacity - Location6. **Production Schedules (Assigning Orders to Work Centers):** - ScheduleID (Primary Key) - ProductionOrderID (Foreign Key) - WorkCenterID (Foreign Key) - Start Date and Time - End Date and Time - Status (e.g., Scheduled, In Progress, Completed)7. **Material Inventory:** - MaterialInventoryID (Primary Key) - Component Product (ProductID, Foreign Key) - Quantity On Hand - UOM (Unit of Measure) - Reorder Level - Status (e.g., In Stock, Out of Stock)8. **Production Tracking (Tracking production progress):** - ProductionTrackingID (Primary Key) - ScheduleID (Foreign Key) - WorkCenterID (Foreign Key) - Component Product (ProductID, Foreign Key) - Start Date and Time - End Date and Time - Quantity Produced - Scrap Quantity - Notes9. **Quality Control Tests:** - QCID (Primary Key) - ProductionTrackingID (Foreign Key) - Test Name - Test Date and Time - Test Result (Pass/Fail) - Notes10. **Production Reports:** - ReportID (Primary Key) - Report Name - Report Date - Report Content (could be generated or stored externally)11. **Production Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description12. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Asset Management System [/INST]1. **Assets:** - AssetID (Primary Key) - Asset Name - Serial Number (Unique Identifier) - Asset Type - Manufacturer - Model - Purchase Date - Purchase Cost - Current Value - Depreciation Method (e.g., Straight Line, Double Declining Balance) - Depreciation Start Date - Salvage Value - Location - Status (e.g., In Use, Maintenance, Disposed)2. **Asset Categories:** - CategoryID (Primary Key) - Category Name - Description3. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Employee ID (Unique Identifier) - Email - Department - Job Title - Phone Number4. **Assignments (Assigning Assets to Employees):** - AssignmentID (Primary Key) - AssetID (Foreign Key) - EmployeeID (Foreign Key) - Assignment Date - Return Date (if applicable) - Status (e.g., Assigned, Returned)5. **Maintenance Records (for tracking asset maintenance):** - MaintenanceRecordID (Primary Key) - AssetID (Foreign Key) - Maintenance Date - Maintenance Type (e.g., Routine, Repairs) - Maintenance Description - Cost - Maintenance Notes6. **Depreciation Records (for tracking asset depreciation):** - DepreciationRecordID (Primary Key) - AssetID (Foreign Key) - Depreciation Date - Depreciation Expense - Accumulated Depreciation - Book Value7. **Asset Disposal Records (for tracking asset disposals):** - DisposalRecordID (Primary Key) - AssetID (Foreign Key) - Disposal Date - Disposal Method (e.g., Sale, Donation, Scrap) - Sale Amount (if applicable) - Notes8. **Asset History (for tracking asset changes):** - AssetHistoryID (Primary Key) - AssetID (Foreign Key) - Field Modified - Previous Value - New Value - Modification Date - Modified By (User ID, Foreign Key)9. **Asset Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Quality Control and Assurance System [/INST]1. **Products:** - ProductID (Primary Key) - Product Name - SKU (Stock Keeping Unit, Unique Identifier) - Description - Category - Manufacturer - Supplier (Supplier ID, Foreign Key) - Production Date - Expiration Date - Status (e.g., In Stock, Out of Stock)2. **Quality Control Tests:** - QCID (Primary Key) - ProductID (Foreign Key) - Test Name - Test Date and Time - Test Result (Pass/Fail) - Notes3. **Defects and Issues:** - DefectID (Primary Key) - ProductID (Foreign Key) - Reported By (Employee ID, Foreign Key) - Defect Date - Defect Type (e.g., Manufacturing, Packaging) - Description - Status (e.g., Open, Closed) - Resolution Notes4. **Quality Control Inspectors:** - InspectorID (Primary Key) - First Name - Last Name - Employee ID (Unique Identifier) - Email - Department - Phone Number5. **Inspections (Assigning Inspections to Inspectors):** - InspectionID (Primary Key) - ProductID (Foreign Key) - InspectorID (Foreign Key) - Inspection Date - Inspection Result (Pass/Fail) - Notes6. **Quality Control Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description7. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Manufacturing Execution System (MES) [/INST]1. **Products:** - ProductID (Primary Key) - Product Name - SKU (Stock Keeping Unit, Unique Identifier) - Description - Category - Manufacturer - Production Line (Production Line ID, Foreign Key) - Production Date - Expiration Date - Status (e.g., In Production, Finished)2. **Production Lines:** - ProductionLineID (Primary Key) - Line Name - Line Description - Line Manager (Employee ID, Foreign Key) - Line Capacity - Status (e.g., Active, Inactive)3. **Work Orders:** - WorkOrderID (Primary Key) - Order Number (Unique Identifier) - Product (ProductID, Foreign Key) - Quantity Ordered - Order Date - Due Date - Order Status (e.g., Planned, In Progress, Completed)4. **Work Order Details (Line Items in a Work Order):** - WorkOrderDetailID (Primary Key) - WorkOrderID (Foreign Key) - ProductID (Foreign Key) - Quantity Produced - Quantity Rejected - Status (e.g., In Progress, Completed)5. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Employee ID (Unique Identifier) - Email - Department - Job Title - Phone Number6. **Assignments (Assigning Work Orders to Employees):** - AssignmentID (Primary Key) - WorkOrderID (Foreign Key) - EmployeeID (Foreign Key) - Assignment Date - Status (e.g., Assigned, Completed)7. **Production Tracking (Tracking production progress):** - ProductionTrackingID (Primary Key) - WorkOrderDetailID (Foreign Key) - ProductionLineID (Foreign Key) - Start Date and Time - End Date and Time - Quantity Produced - Quantity Rejected - Notes8. **Quality Control Tests:** - QCID (Primary Key) - ProductID (Foreign Key) - Test Name - Test Date and Time - Test Result (Pass/Fail) - Notes9. **Material Inventory:** - MaterialInventoryID (Primary Key) - Component Product (ProductID, Foreign Key) - Quantity On Hand - UOM (Unit of Measure) - Reorder Level - Status (e.g., In Stock, Out of Stock)10. **MES Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Flight Company [/INST]1. **Aircrafts:** - AircraftID (Primary Key) - Aircraft Name - Aircraft Type - Registration Number (Unique Identifier) - Manufacture Date - Capacity (Number of Passengers) - Status (e.g., In Service, Maintenance, Retired)2. **Flights:** - FlightID (Primary Key) - Flight Number (Unique Identifier) - Aircraft (AircraftID, Foreign Key) - Departure Airport (Airport Code, Foreign Key) - Destination Airport (Airport Code, Foreign Key) - Departure Date and Time - Arrival Date and Time - Flight Status (e.g., Scheduled, In Progress, Completed)3. **Airports:** - AirportCode (Primary Key) - Airport Name - Location (City, State, Country) - Terminal Information - Contact Information4. **Passengers:** - PassengerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - National ID (Unique Identifier) - Contact Number - Email - Address5. **Tickets:** - TicketID (Primary Key) - Flight (FlightID, Foreign Key) - Passenger (PassengerID, Foreign Key) - Ticket Number (Unique Identifier) - Ticket Class (e.g., Economy, Business, First) - Seat Number - Ticket Price - Booking Date and Time - Ticket Status (e.g., Confirmed, Canceled)6. **Crew Members (Pilots and Flight Attendants):** - CrewMemberID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Employee ID (Unique Identifier) - Contact Number - Email - Role (e.g., Pilot, Flight Attendant) - License (for Pilots) - Base Location - Employment Status (e.g., Full-time, Part-time)7. **Flight Crew Assignments:** - AssignmentID (Primary Key) - Flight (FlightID, Foreign Key) - Crew Member (CrewMemberID, Foreign Key) - Assignment Date and Time - Role (e.g., Captain, First Officer, Flight Attendant) - Assignment Status (e.g., Assigned, Completed)8. **Flight Reservations:** - ReservationID (Primary Key) - Passenger (PassengerID, Foreign Key) - Flight (FlightID, Foreign Key) - Reservation Number (Unique Identifier) - Reservation Date and Time - Status (e.g., Reserved, Canceled)9. **Flight Company Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Restaurant [/INST]1. **Menu Items:** - MenuItemID (Primary Key) - Item Name - Description - Category (e.g., Appetizer, Main Course, Dessert) - Price - Ingredients - Dietary Information - Availability (e.g., In Stock, Out of Stock)2. **Orders:** - OrderID (Primary Key) - Table Number - Order Date and Time - Waiter/Waitress (Employee ID, Foreign Key) - Total Amount - Order Status (e.g., Open, Closed, Paid)3. **Order Items (Line Items in an Order):** - OrderItemID (Primary Key) - OrderID (Foreign Key) - MenuItem (MenuItemID, Foreign Key) - Quantity - Item Price - Subtotal4. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Employee ID (Unique Identifier) - Email - Position (e.g., Chef, Waiter/Waitress, Manager) - Phone Number - Salary - Employment Status (e.g., Full-time, Part-time) - Hire Date5. **Tables:** - TableID (Primary Key) - Table Number - Seating Capacity - Status (e.g., Occupied, Available) - Location6. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Contact Number - Email - Membership Status (e.g., Member, Non-Member) - Membership Expiry Date7. **Reservations:** - ReservationID (Primary Key) - Customer (CustomerID, Foreign Key) - Reservation Date and Time - Table Number - Number of Guests - Special Requests - Reservation Status (e.g., Confirmed, Canceled)8. **Employee Shifts:** - ShiftID (Primary Key) - Employee (EmployeeID, Foreign Key) - Shift Date - Shift Start Time - Shift End Time - Shift Status (e.g., Scheduled, Completed)9. **Payments (for recording payments):** - PaymentID (Primary Key) - OrderID (Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Cash, Credit Card) - Notes10. **Restaurant Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Sports System [/INST]1. **Teams:** - TeamID (Primary Key) - Team Name - Coach (Employee ID, Foreign Key) - Founded Year - Home Stadium - City - State - Country2. **Players:** - PlayerID (Primary Key) - First Name - Last Name - Player Number (Unique Identifier) - Date of Birth - Nationality - Position - Height - Weight - Current Team (TeamID, Foreign Key) - Contract Start Date - Contract End Date - Status (e.g., Active, Injured, Retired)3. **Matches:** - MatchID (Primary Key) - Home Team (TeamID, Foreign Key) - Away Team (TeamID, Foreign Key) - Match Date and Time - Venue - Match Status (e.g., Scheduled, In Progress, Completed) - Home Team Score - Away Team Score4. **Goals (for tracking goals in matches):** - GoalID (Primary Key) - Match (MatchID, Foreign Key) - Scorer (PlayerID, Foreign Key) - Assist (PlayerID, Foreign Key) - Goal Time5. **Bookings (for tracking yellow and red cards in matches):** - BookingID (Primary Key) - Match (MatchID, Foreign Key) - Player (PlayerID, Foreign Key) - Card Type (e.g., Yellow, Red) - Booking Time6. **Coaches:** - CoachID (Primary Key) - First Name - Last Name - Coach License Number (Unique Identifier) - Date of Birth - Nationality - Team (TeamID, Foreign Key) - Contract Start Date - Contract End Date - Status (e.g., Active, Retired)7. **Tournaments:** - TournamentID (Primary Key) - Tournament Name - Start Date - End Date - Host Country - Organizer - Status (e.g., Upcoming, In Progress, Completed)8. **Matches in Tournaments:** - TournamentMatchID (Primary Key) - Tournament (TournamentID, Foreign Key) - Match (MatchID, Foreign Key)9. **Sports System Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Gym [/INST]1. **Members:** - MemberID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Registration Date - Membership Type (e.g., Basic, Premium) - Membership Expiration Date - Status (e.g., Active, Suspended, Expired)2. **Trainers:** - TrainerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Certification (e.g., Personal Trainer, Nutritionist) - Specialization - Employment Date - Status (e.g., Active, Inactive)3. **Classes:** - ClassID (Primary Key) - Class Name - Description - Trainer (TrainerID, Foreign Key) - Class Schedule (Days, Time) - Capacity - Status (e.g., Scheduled, In Progress, Completed)4. **Class Attendance (for tracking member attendance in classes):** - AttendanceID (Primary Key) - Class (ClassID, Foreign Key) - Member (MemberID, Foreign Key) - Attendance Date - Status (e.g., Attended, Absent)5. **Equipment:** - EquipmentID (Primary Key) - Equipment Name - Description - Manufacturer - Purchase Date - Purchase Cost - Equipment Type (e.g., Cardio, Strength, Free Weights) - Status (e.g., In Service, Maintenance, Retired)6. **Equipment Maintenance Records (for tracking equipment maintenance):** - MaintenanceRecordID (Primary Key) - Equipment (EquipmentID, Foreign Key) - Maintenance Date - Maintenance Type (e.g., Routine, Repairs) - Maintenance Description - Cost - Maintenance Notes7. **Invoices (for billing members):** - InvoiceID (Primary Key) - Member (MemberID, Foreign Key) - Invoice Date - Due Date - Total Amount - Payment Status (e.g., Paid, Unpaid)8. **Payments (for recording member payments):** - PaymentID (Primary Key) - Invoice (InvoiceID, Foreign Key) - Payment Date - Payment Amount - Payment Method (e.g., Cash, Credit Card) - Notes9. **Gym Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Medical Labs system [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Registration Date - Medical History - Insurance Information2. **Doctors:** - DoctorID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Specialization - License Number (Unique Identifier) - Medical Facility - Status (e.g., Active, Inactive)3. **Appointments:** - AppointmentID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment Date and Time - Appointment Type (e.g., Consultation, Test) - Status (e.g., Scheduled, Completed, Canceled)4. **Tests:** - TestID (Primary Key) - Test Name - Description - Test Category (e.g., Blood Test, Urine Test) - Normal Range - Price - Status (e.g., Active, Inactive)5. **Test Results:** - ResultID (Primary Key) - Test (TestID, Foreign Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Test Date and Time - Test Result Details (e.g., Numeric Value, Textual Description) - Status (e.g., Pending, Reviewed)6. **Prescriptions:** - PrescriptionID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Prescription Date - Medications - Dosage - Instructions - Status (e.g., Active, Inactive)7. **Billing:** - BillID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment (AppointmentID, Foreign Key) - Test (TestID, Foreign Key) - Test Result (ResultID, Foreign Key) - Prescription (PrescriptionID, Foreign Key) - Total Amount - Billing Date - Payment Status (e.g., Paid, Unpaid)8. **Lab Technicians:** - TechnicianID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Certification - Status (e.g., Active, Inactive)9. **Test Assignments (Assigning Tests to Lab Technicians):** - AssignmentID (Primary Key) - Test (TestID, Foreign Key) - Technician (TechnicianID, Foreign Key) - Assignment Date - Status (e.g., Assigned, Completed)10. **Lab Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Point of Sale (POS) system [/INST]1. **Products:** - ProductID (Primary Key) - Product Name - Description - Category (e.g., Electronics, Clothing, Groceries) - Price - Quantity in Stock - Supplier (SupplierID, Foreign Key) - Barcode (Unique Identifier) - Tax Rate - Status (e.g., In Stock, Out of Stock)2. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Loyalty Points - Membership Status (e.g., Member, Non-Member) - Membership Expiry Date3. **Sales Transactions:** - TransactionID (Primary Key) - Cashier (Employee ID, Foreign Key) - Customer (CustomerID, Foreign Key) - Transaction Date and Time - Total Amount - Payment Method (e.g., Cash, Credit Card) - Transaction Status (e.g., Completed, Refunded)4. **Transaction Items (Line Items in a Transaction):** - TransactionItemID (Primary Key) - Transaction (TransactionID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Sold - Item Price - Subtotal - Tax Amount5. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Position (e.g., Cashier, Manager) - Hire Date - Salary - Employment Status (e.g., Full-time, Part-time)6. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address - Payment Terms - Status (e.g., Active, Inactive)7. **Returns (for processing product returns):** - ReturnID (Primary Key) - Transaction (TransactionID, Foreign Key) - Return Date and Time - Returned Items (List of TransactionItemIDs) - Return Reason - Refund Amount - Return Status (e.g., Approved, Rejected)8. **Cash Register (for tracking cash in the register):** - RegisterID (Primary Key) - Register Name - Opening Cash - Closing Cash - Register Status (e.g., Open, Closed)9. **Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Cashier) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Hotel Booking system [/INST]1. **Guests:** - GuestID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID (Unique Identifier) - Membership Status (e.g., Member, Non-Member) - Membership Expiry Date2. **Rooms:** - RoomID (Primary Key) - Room Number - Room Type (e.g., Single, Double, Suite) - Room Status (e.g., Available, Occupied, Under Maintenance) - Bed Type (e.g., King, Queen, Twin) - Rate per Night - Maximum Capacity - View (e.g., City View, Sea View) - Floor Number3. **Bookings:** - BookingID (Primary Key) - Guest (GuestID, Foreign Key) - Check-In Date and Time - Check-Out Date and Time - Total Amount - Booking Status (e.g., Confirmed, Canceled) - Special Requests4. **Services (Additional services offered by the hotel):** - ServiceID (Primary Key) - Service Name - Description - Price - Service Status (e.g., Available, Unavailable)5. **Booking Services (for associating services with bookings):** - BookingServiceID (Primary Key) - Booking (BookingID, Foreign Key) - Service (ServiceID, Foreign Key) - Quantity - Subtotal6. **Employees (Hotel Staff):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Position (e.g., Front Desk, Housekeeping, Manager) - Hire Date - Salary - Employment Status (e.g., Full-time, Part-time)7. **Room Assignments (Associating guests with rooms):** - RoomAssignmentID (Primary Key) - Booking (BookingID, Foreign Key) - Room (RoomID, Foreign Key) - Guest (GuestID, Foreign Key) - Check-In Date and Time - Check-Out Date and Time - Room Rate8. **Payments (for recording guest payments):** - PaymentID (Primary Key) - Booking (BookingID, Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Cash, Credit Card) - Notes9. **Hotel Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Front Desk) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Accounting System [/INST]1. **Accounts:** - AccountID (Primary Key) - Account Name - Account Type (e.g., Asset, Liability, Income, Expense) - Opening Balance - Currency - Status (e.g., Active, Inactive)2. **Transactions:** - TransactionID (Primary Key) - Transaction Date - Description - Transaction Type (e.g., Journal Entry, Sales Invoice, Purchase Invoice) - Reference Number - Status (e.g., Posted, Unposted)3. **Transaction Details (Line Items in a Transaction):** - DetailID (Primary Key) - Transaction (TransactionID, Foreign Key) - Account (AccountID, Foreign Key) - Debit Amount - Credit Amount4. **Vendors (Suppliers):** - VendorID (Primary Key) - Vendor Name - Contact Person - Contact Number - Email - Address - Tax ID - Payment Terms - Status (e.g., Active, Inactive)5. **Customers:** - CustomerID (Primary Key) - Customer Name - Contact Person - Contact Number - Email - Address - Tax ID - Payment Terms - Status (e.g., Active, Inactive)6. **Invoices (Sales and Purchase):** - InvoiceID (Primary Key) - Invoice Date - Due Date - Customer (CustomerID, Foreign Key) - Vendor (VendorID, Foreign Key) - Total Amount - Invoice Status (e.g., Open, Paid, Overdue) - Payment Status (e.g., Partial, Paid, Unpaid)7. **Invoice Items (Line Items in an Invoice):** - InvoiceItemID (Primary Key) - Invoice (InvoiceID, Foreign Key) - Product/Service Name - Description - Quantity - Unit Price - Line Total8. **Bank Accounts:** - BankAccountID (Primary Key) - Bank Name - Account Number - Account Name - Currency - Opening Balance9. **Bank Transactions (for recording bank-related transactions):** - BankTransactionID (Primary Key) - Transaction Date - Description - Bank Account (BankAccountID, Foreign Key) - Withdrawal Amount - Deposit Amount - Balance10. **Ledger Entries (General Ledger Entries for reporting):** - LedgerEntryID (Primary Key) - Account (AccountID, Foreign Key) - Transaction (TransactionID, Foreign Key) - Debit Amount - Credit Amount11. **Accounting Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description12. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Accountant) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for Booking Tickets for a Football Match [/INST]1. **Matches:** - MatchID (Primary Key) - Home Team - Away Team - Match Date and Time - Venue - Ticket Price - Total Tickets Available - Status (e.g., Upcoming, In Progress, Completed)2. **Stadium Sections:** - SectionID (Primary Key) - Section Name - Capacity - Price per Ticket - Total Tickets Available - Match (MatchID, Foreign Key)3. **Tickets:** - TicketID (Primary Key) - Match (MatchID, Foreign Key) - Section (SectionID, Foreign Key) - Seat Number - Price - Status (e.g., Available, Reserved, Sold)4. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Membership Status (e.g., Member, Non-Member) - Membership Expiry Date5. **Bookings:** - BookingID (Primary Key) - Match (MatchID, Foreign Key) - Customer (CustomerID, Foreign Key) - Booking Date and Time - Total Amount - Status (e.g., Reserved, Paid)6. **Payment Transactions (for recording payments):** - TransactionID (Primary Key) - Booking (BookingID, Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Credit Card, PayPal) - Transaction Status (e.g., Successful, Failed)7. **Match Officials:** - OfficialID (Primary Key) - First Name - Last Name - Role (e.g., Referee, Linesman) - Contact Number - Email - National ID (Unique Identifier) - Status (e.g., Active, Inactive)8. **Match Results:** - ResultID (Primary Key) - Match (MatchID, Foreign Key) - Home Team Goals - Away Team Goals - Match Official (OfficialID, Foreign Key) - Match Status (e.g., Final, Postponed)9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Customer) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Reservation System for Sinema [/INST]1. **Movies:** - MovieID (Primary Key) - Movie Title - Genre - Release Date - Director - Duration (in minutes) - Rating - Synopsis - Poster Image URL - Status (e.g., Now Showing, Upcoming)2. **Cinemas:** - CinemaID (Primary Key) - Cinema Name - Location - Number of Screens - Contact Number - Status (e.g., Open, Closed)3. **Screens (individual screens within a cinema):** - ScreenID (Primary Key) - Cinema (CinemaID, Foreign Key) - Screen Number - Seating Capacity - Screen Type (e.g., Standard, VIP, 3D) - Status (e.g., Active, Inactive)4. **Showtimes (scheduled movie showings):** - ShowtimeID (Primary Key) - Movie (MovieID, Foreign Key) - Screen (ScreenID, Foreign Key) - Showtime Date and Time - Ticket Price - Status (e.g., Scheduled, Canceled, Finished)5. **Seats (individual seats within a screen):** - SeatID (Primary Key) - Screen (ScreenID, Foreign Key) - Seat Number - Seat Type (e.g., Standard, VIP, Accessible) - Status (e.g., Available, Reserved, Sold)6. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Membership Status (e.g., Member, Non-Member) - Membership Expiry Date7. **Reservations:** - ReservationID (Primary Key) - Showtime (ShowtimeID, Foreign Key) - Customer (CustomerID, Foreign Key) - Reservation Date and Time - Total Amount - Status (e.g., Reserved, Paid)8. **Payment Transactions (for recording payments):** - TransactionID (Primary Key) - Reservation (ReservationID, Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Credit Card, Cash) - Transaction Status (e.g., Successful, Failed)9. **Concession Items (snacks and drinks):** - ConcessionID (Primary Key) - Item Name - Description - Price - Availability Status (e.g., In Stock, Out of Stock)10. **Concession Orders (for recording orders of concession items):** - OrderID (Primary Key) - Reservation (ReservationID, Foreign Key) - Concession Item (ConcessionID, Foreign Key) - Quantity - Subtotal11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Customer) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Hospital System [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Blood Type - Medical History - Insurance Information2. **Doctors:** - DoctorID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Specialization - License Number (Unique Identifier) - Medical Facility - Status (e.g., Active, Inactive)3. **Appointments:** - AppointmentID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment Date and Time - Appointment Type (e.g., Consultation, Procedure) - Status (e.g., Scheduled, Completed, Canceled)4. **Prescriptions:** - PrescriptionID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Prescription Date - Medications - Dosage - Instructions - Status (e.g., Active, Inactive)5. **Medical Records:** - RecordID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Record Date and Time - Diagnosis - Treatment - Test Results - Notes6. **Billing:** - BillID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment (AppointmentID, Foreign Key) - Total Amount - Billing Date - Payment Status (e.g., Paid, Unpaid)7. **Medical Tests:** - TestID (Primary Key) - Test Name - Description - Test Category (e.g., Blood Test, X-Ray) - Normal Range - Price - Status (e.g., Active, Inactive)8. **Test Results:** - ResultID (Primary Key) - Test (TestID, Foreign Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Test Date and Time - Test Result Details (e.g., Numeric Value, Textual Description) - Status (e.g., Pending, Reviewed)9. **Departments:** - DepartmentID (Primary Key) - Department Name - Department Head (DoctorID, Foreign Key) - Description - Status (e.g., Active, Inactive)10. **Admissions:** - AdmissionID (Primary Key) - Patient (PatientID, Foreign Key) - Admission Date and Time - Ward (WardID, Foreign Key) - Room (RoomID, Foreign Key) - Admission Type (e.g., Emergency, Scheduled) - Discharge Date and Time - Admission Status (e.g., Admitted, Discharged)11. **Wards:** - WardID (Primary Key) - Ward Name - Ward Type (e.g., General, ICU) - Capacity - Availability Status (e.g., Available, Full) 12. **Rooms:** - RoomID (Primary Key) - Room Number - Room Type (e.g., Single, Double, Suite) - Room Status (e.g., Occupied, Vacant) 13. **Employees (Hospital Staff):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Position (e.g., Nurse, Administrator, Technician) - Hire Date - Salary - Employment Status (e.g., Full-time, Part-time) 14. **Medications:** - MedicationID (Primary Key) - Medication Name - Description - Dosage Instructions - Price - Availability Status (e.g., In Stock, Out of Stock) 15. **Medical Equipment:** - EquipmentID (Primary Key) - Equipment Name - Description - Manufacturer - Purchase Date - Maintenance Status (e.g., Functional, Under Maintenance) 16. **Hospital Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description17. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Doctor, Nurse) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Dentist System [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Medical History - Insurance Information2. **Dentists:** - DentistID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - License Number (Unique Identifier) - Dental Clinic - Status (e.g., Active, Inactive)3. **Appointments:** - AppointmentID (Primary Key) - Patient (PatientID, Foreign Key) - Dentist (DentistID, Foreign Key) - Appointment Date and Time - Appointment Type (e.g., Checkup, Procedure) - Status (e.g., Scheduled, Completed, Canceled)4. **Prescriptions:** - PrescriptionID (Primary Key) - Patient (PatientID, Foreign Key) - Dentist (DentistID, Foreign Key) - Prescription Date - Medications - Dosage - Instructions - Status (e.g., Active, Inactive)5. **Dental Records:** - RecordID (Primary Key) - Patient (PatientID, Foreign Key) - Dentist (DentistID, Foreign Key) - Record Date and Time - Diagnosis - Treatment - X-Ray Images - Notes6. **Billing:** - BillID (Primary Key) - Patient (PatientID, Foreign Key) - Dentist (DentistID, Foreign Key) - Appointment (AppointmentID, Foreign Key) - Total Amount - Billing Date - Payment Status (e.g., Paid, Unpaid)7. **Dental Procedures:** - ProcedureID (Primary Key) - Procedure Name - Description - Procedure Cost - Status (e.g., Active, Inactive)8. **Procedure Records (for recording procedures performed):** - ProcedureRecordID (Primary Key) - Appointment (AppointmentID, Foreign Key) - Procedure (ProcedureID, Foreign Key) - Procedure Date and Time - Notes9. **Departments (Dental Specializations):** - DepartmentID (Primary Key) - Department Name - Department Head (DentistID, Foreign Key) - Description - Status (e.g., Active, Inactive)10. **Dental Equipment:** - EquipmentID (Primary Key) - Equipment Name - Description - Manufacturer - Purchase Date - Maintenance Status (e.g., Functional, Under Maintenance)11. **Settings (System Configuration):** - SettingID (Primary Key) - Setting Name - Setting Value - Description12. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Dentist, Receptionist) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Pharmacy Management System [/INST]1. **Medications:** - MedicationID (Primary Key) - Medication Name - Generic Name - Dosage Form - Manufacturer - Expiration Date - Unit Price - Quantity in Stock - Description2. **Prescriptions:** - PrescriptionID (Primary Key) - Patient Name - Doctor Name - Prescription Date - Status (e.g., Filled, Pending)3. **Prescription Details (Line Items in a Prescription):** - DetailID (Primary Key) - Prescription (PrescriptionID, Foreign Key) - Medication (MedicationID, Foreign Key) - Quantity - Dosage Instructions - Refill Number4. **Pharmacists:** - PharmacistID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - License Number (Unique Identifier) - Work Shift - Status (e.g., Active, Inactive)5. **Sales Transactions (for selling medications):** - TransactionID (Primary Key) - Prescription (PrescriptionID, Foreign Key) - Pharmacist (PharmacistID, Foreign Key) - Transaction Date and Time - Total Amount - Payment Method (e.g., Cash, Credit Card) - Transaction Status (e.g., Completed, Refunded)6. **Inventory Adjustments (for tracking stock adjustments):** - AdjustmentID (Primary Key) - Medication (MedicationID, Foreign Key) - Adjustment Date and Time - Adjustment Type (e.g., Restock, Dispose) - Quantity Adjusted - Reason - Adjusted By (PharmacistID, Foreign Key)7. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address - Payment Terms - Status (e.g., Active, Inactive)8. **Purchase Orders (for ordering medications from suppliers):** - OrderID (Primary Key) - Supplier (SupplierID, Foreign Key) - Order Date - Expected Delivery Date - Order Status (e.g., Placed, Shipped, Received)9. **Purchase Order Details (Line Items in a Purchase Order):** - DetailID (Primary Key) - Purchase Order (OrderID, Foreign Key) - Medication (MedicationID, Foreign Key) - Quantity Ordered - Unit Price - Subtotal10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Pharmacist) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Library Catalog System [/INST]1. **Books:** - BookID (Primary Key) - ISBN (International Standard Book Number, Unique Identifier) - Title - Author - Publisher - Publication Year - Genre - Total Copies - Available Copies2. **Authors:** - AuthorID (Primary Key) - Author Name - Biography - Birth Date - Nationality3. **Publishers:** - PublisherID (Primary Key) - Publisher Name - Address - Contact Number - Email - Website4. **Members (Library Patrons):** - MemberID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Membership Status (e.g., Active, Inactive) - Membership Expiry Date5. **Borrowed Books (Records of Books Checked Out):** - BorrowID (Primary Key) - Member (MemberID, Foreign Key) - Book (BookID, Foreign Key) - Check-Out Date - Due Date - Return Date - Return Status (e.g., Returned, Overdue)6. **Book Reservations (Records of Reserved Books):** - ReservationID (Primary Key) - Member (MemberID, Foreign Key) - Book (BookID, Foreign Key) - Reservation Date - Status (e.g., Reserved, Canceled, Checked Out)7. **Book Ratings and Reviews:** - RatingID (Primary Key) - Member (MemberID, Foreign Key) - Book (BookID, Foreign Key) - Rating (e.g., 1-5 Stars) - Review Text - Review Date8. **Library Staff (Librarians and Administrators):** - StaffID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Staff Role (e.g., Librarian, Administrator) - Hire Date9. **Library Sections (Categorized Book Sections):** - SectionID (Primary Key) - Section Name - Description10. **Library Transactions (for Logging Library Activities):** - TransactionID (Primary Key) - Staff (StaffID, Foreign Key) - Transaction Date and Time - Transaction Type (e.g., Book Check-Out, Book Return, Book Reservation) - Book (BookID, Foreign Key) - Member (MemberID, Foreign Key)11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Librarian) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Event Registration System [/INST]1. **Events:** - EventID (Primary Key) - Event Name - Event Date and Time - Location - Description - Capacity - Registration Deadline - Event Status (e.g., Upcoming, Completed, Canceled)2. **Organizers:** - OrganizerID (Primary Key) - Organizer Name - Contact Person - Contact Number - Email - Organizer Description3. **Registrants (Event Participants):** - RegistrantID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Registration Date and Time - Registration Status (e.g., Registered, Canceled)4. **Registrations (Records of Registrants for Events):** - RegistrationID (Primary Key) - Event (EventID, Foreign Key) - Registrant (RegistrantID, Foreign Key) - Registration Date and Time - Registration Status (e.g., Confirmed, Waitlisted, Canceled) - Payment Status (e.g., Paid, Unpaid)5. **Payment Transactions (for Event Registration Payments):** - TransactionID (Primary Key) - Registration (RegistrationID, Foreign Key) - Transaction Date and Time - Transaction Amount - Payment Method (e.g., Credit Card, PayPal) - Transaction Status (e.g., Successful, Failed)6. **Event Categories (Categorized Event Types):** - CategoryID (Primary Key) - Category Name - Category Description7. **Event Attendees (for tracking event attendance):** - AttendanceID (Primary Key) - Event (EventID, Foreign Key) - Registrant (RegistrantID, Foreign Key) - Attendance Date and Time - Attendance Status (e.g., Attended, Not Attended)8. **Event Feedback (for collecting participant feedback):** - FeedbackID (Primary Key) - Event (EventID, Foreign Key) - Registrant (RegistrantID, Foreign Key) - Feedback Date and Time - Feedback Rating (e.g., 1-5 Stars) - Feedback Comments9. **Event Resources (e.g., Documents, Presentations):** - ResourceID (Primary Key) - Event (EventID, Foreign Key) - Resource Name - Description - Resource Type (e.g., PDF, PowerPoint) - File URL10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Organizer) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Hotel Management System [/INST]1. **Rooms:** - RoomID (Primary Key) - Room Number - Room Type (e.g., Single, Double, Suite) - Room Rate - Capacity (Number of Guests) - Availability Status (e.g., Available, Occupied, Reserved) - Smoking Allowed - Description2. **Guests:** - GuestID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID or Passport - Check-In Date and Time - Check-Out Date and Time - Total Bill Amount3. **Reservations:** - ReservationID (Primary Key) - Guest (GuestID, Foreign Key) - Room (RoomID, Foreign Key) - Reservation Date - Check-In Date - Check-Out Date - Reservation Status (e.g., Confirmed, Canceled, Checked-In)4. **Staff (Hotel Employees):** - StaffID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Position (e.g., Receptionist, Housekeeping, Manager) - Hire Date - Salary - Employment Status (e.g., Full-time, Part-time)5. **Services (Hotel Services and Amenities):** - ServiceID (Primary Key) - Service Name - Description - Service Rate6. **Service Requests (Guest Requests for Services):** - RequestID (Primary Key) - Guest (GuestID, Foreign Key) - Service (ServiceID, Foreign Key) - Request Date and Time - Request Status (e.g., Pending, Completed, Canceled)7. **Payments (Guest Payments and Invoices):** - PaymentID (Primary Key) - Guest (GuestID, Foreign Key) - Room (RoomID, Foreign Key) - Services (ServiceIDs as a List) - Check-In Date - Check-Out Date - Total Bill Amount - Payment Date and Time - Payment Method (e.g., Credit Card, Cash) - Payment Status (e.g., Paid, Unpaid)8. **Guest Feedback (for collecting guest reviews):** - FeedbackID (Primary Key) - Guest (GuestID, Foreign Key) - Feedback Date and Time - Rating (e.g., 1-5 Stars) - Feedback Comments9. **Rooms Maintenance (for tracking room maintenance):** - MaintenanceID (Primary Key) - Room (RoomID, Foreign Key) - Maintenance Date and Time - Description - Maintenance Status (e.g., Completed, In Progress)10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Staff) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Fleet Management System [/INST]1. **Vehicles:** - VehicleID (Primary Key) - Vehicle Number (License Plate) - Vehicle Type (e.g., Car, Truck, Van) - Make - Model - Year - Color - Purchase Date - Initial Mileage - Current Mileage - Fuel Type (e.g., Gasoline, Diesel) - Status (e.g., Active, Inactive, Under Maintenance) - Location (Last Known Location)2. **Drivers:** - DriverID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - License Number (Unique Identifier) - License Expiration Date - Employment Status (e.g., Full-time, Part-time)3. **Trips (Records of Vehicle Trips):** - TripID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Driver (DriverID, Foreign Key) - Start Date and Time - End Date and Time - Start Location - End Location - Distance Traveled - Fuel Used - Trip Purpose - Trip Status (e.g., Completed, In Progress)4. **Maintenance Records (Vehicle Maintenance History):** - MaintenanceID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Maintenance Date and Time - Maintenance Type (e.g., Oil Change, Tire Rotation) - Description - Cost - Maintenance Status (e.g., Completed, Scheduled)5. **Fuel Purchases (Records of Fuel Purchases):** - FuelPurchaseID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Purchase Date and Time - Fuel Type (e.g., Gasoline, Diesel) - Gallons/Liters Purchased - Total Cost - Odometer Reading at Purchase6. **Incidents (Records of Vehicle Incidents and Accidents):** - IncidentID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Date and Time of Incident - Location of Incident - Description - Responsible Driver (DriverID, Foreign Key) - Incident Status (e.g., Resolved, Under Investigation)7. **Departments (Vehicle Assignment to Departments):** - DepartmentID (Primary Key) - Department Name - Description8. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Fleet Manager) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Student Information System [/INST]1. **Students:** - StudentID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID or Passport - Admission Date - Graduation Date - Current Status (e.g., Enrolled, Graduated, On Leave)2. **Courses:** - CourseID (Primary Key) - Course Code - Course Title - Course Description - Credit Hours - Department (e.g., Mathematics, Science, Humanities)3. **Enrollments (Records of Student Enrollments in Courses):** - EnrollmentID (Primary Key) - Student (StudentID, Foreign Key) - Course (CourseID, Foreign Key) - Enrollment Date - Enrollment Status (e.g., Enrolled, Dropped, Completed)4. **Instructors (Faculty Information):** - InstructorID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Department - Hire Date - Salary - Employment Status (e.g., Full-time, Part-time)5. **Classrooms (Classroom Information):** - ClassroomID (Primary Key) - Classroom Number - Capacity (Number of Seats) - Location - Facilities - Availability Status (e.g., Available, Reserved)6. **Class Schedules (Schedules of Courses and Classes):** - ScheduleID (Primary Key) - Course (CourseID, Foreign Key) - Instructor (InstructorID, Foreign Key) - Classroom (ClassroomID, Foreign Key) - Day of Week (e.g., Monday, Tuesday) - Start Time - End Time7. **Grades (Records of Student Grades in Courses):** - GradeID (Primary Key) - Enrollment (EnrollmentID, Foreign Key) - Grade (e.g., A, B, C, D, F) - Exam Scores (e.g., Midterm Score, Final Score) - Grade Date8. **Departments (Academic Departments):** - DepartmentID (Primary Key) - Department Name - Department Head (InstructorID, Foreign Key) - Department Description9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Instructor, Student) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Inventory Tracking System [/INST]1. **Products:** - ProductID (Primary Key) - Product Code (Unique Identifier) - Product Name - Description - Category (e.g., Electronics, Apparel, Food) - Supplier (SupplierID, Foreign Key) - Unit Price - Reorder Point - Quantity in Stock - Last Restock Date2. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address - Payment Terms - Notes3. **Inventory Transactions (Records of Inventory Movements):** - TransactionID (Primary Key) - Product (ProductID, Foreign Key) - Transaction Date and Time - Transaction Type (e.g., Purchase, Sale, Return) - Quantity - Unit Cost - Total Cost - Transaction Description4. **Customers (if applicable for sales tracking):** - CustomerID (Primary Key) - Customer Name - Contact Person - Contact Number - Email - Address - Payment Terms5. **Sales Orders (Records of Sales Orders):** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date - Order Status (e.g., Pending, Shipped, Delivered) - Total Amount - Notes6. **Order Details (Line Items in Sales Orders):** - DetailID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Unit Price - Subtotal7. **Purchase Orders (Records of Purchase Orders):** - PurchaseOrderID (Primary Key) - Supplier (SupplierID, Foreign Key) - Order Date - Expected Delivery Date - Order Status (e.g., Placed, Shipped, Received) - Total Amount - Notes8. **Purchase Order Details (Line Items in Purchase Orders):** - DetailID (Primary Key) - PurchaseOrder (PurchaseOrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Unit Cost - Subtotal9. **Inventory Adjustments (for tracking stock adjustments):** - AdjustmentID (Primary Key) - Product (ProductID, Foreign Key) - Adjustment Date and Time - Adjustment Type (e.g., Restock, Dispose) - Quantity Adjusted - Reason - Adjusted By (UserID, Foreign Key)10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Inventory Manager) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Legal Case Management System [/INST]1. **Cases:** - CaseID (Primary Key) - Case Number (Unique Identifier) - Case Title - Case Description - Case Type (e.g., Civil, Criminal, Family) - Case Status (e.g., Open, Closed, Pending) - Case Priority (e.g., High, Medium, Low) - Case Start Date - Case End Date - Lead Attorney (AttorneyID, Foreign Key)2. **Clients:** - ClientID (Primary Key) - Client Name - Contact Person - Contact Number - Email - Address - Case History (e.g., Previous Cases) - Notes3. **Attorneys:** - AttorneyID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - License Number (Unique Identifier) - License State - License Expiration Date - Employment Status (e.g., Partner, Associate, Intern)4. **Case Assignments (Assignment of Attorneys to Cases):** - AssignmentID (Primary Key) - Case (CaseID, Foreign Key) - Attorney (AttorneyID, Foreign Key) - Assignment Date - Assignment Status (e.g., Assigned, Completed)5. **Case Documents (Documents related to Cases):** - DocumentID (Primary Key) - Case (CaseID, Foreign Key) - Document Name - Document Type (e.g., Contract, Evidence, Correspondence) - Upload Date - Description - Document Path6. **Case Notes (for keeping case-related notes):** - NoteID (Primary Key) - Case (CaseID, Foreign Key) - Author (AttorneyID, Foreign Key) - Note Date and Time - Note Text7. **Court Dates (Scheduled Court Dates for Cases):** - CourtDateID (Primary Key) - Case (CaseID, Foreign Key) - Scheduled Date and Time - Courtroom Location - Hearing Type - Outcome - Judge Name8. **Expenses (Expenses related to Cases):** - ExpenseID (Primary Key) - Case (CaseID, Foreign Key) - Expense Date - Expense Type (e.g., Court Fees, Travel) - Amount - Description9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Attorney, Support Staff) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Employee Time Tracking System [/INST]1. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID or Employee ID - Hire Date - Department (e.g., Sales, Marketing, IT) - Employment Status (e.g., Full-time, Part-time) - Supervisor (EmployeeID, Foreign Key)2. **Time Clock Entries (Records of Employee Clock-In/Out):** - EntryID (Primary Key) - Employee (EmployeeID, Foreign Key) - Clock-In Date and Time - Clock-Out Date and Time - Work Hours - Break Minutes - Clock-In Location - Clock-Out Location3. **Leave Requests (Employee Leave Requests):** - LeaveRequestID (Primary Key) - Employee (EmployeeID, Foreign Key) - Leave Type (e.g., Vacation, Sick Leave) - Start Date - End Date - Status (e.g., Pending, Approved, Rejected) - Reason - Requested By (EmployeeID, Foreign Key)4. **Holidays (List of Company Holidays):** - HolidayID (Primary Key) - Holiday Date - Holiday Name5. **Attendance Records (Records of Employee Attendance):** - AttendanceID (Primary Key) - Employee (EmployeeID, Foreign Key) - Date - Clock-In Time - Clock-Out Time - Total Hours Worked - Absent/Present Status6. **Overtime Requests (Employee Overtime Requests):** - OvertimeRequestID (Primary Key) - Employee (EmployeeID, Foreign Key) - Overtime Date - Overtime Hours - Status (e.g., Pending, Approved, Rejected) - Reason - Requested By (EmployeeID, Foreign Key)7. **Payroll Records (Employee Payroll History):** - PayrollID (Primary Key) - Employee (EmployeeID, Foreign Key) - Payroll Date - Hours Worked - Overtime Hours - Gross Pay - Deductions (e.g., Taxes, Benefits) - Net Pay8. **Shifts (Shift Information for Employee Scheduling):** - ShiftID (Primary Key) - Shift Name - Start Time - End Time - Shift Description9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Manager, Employee) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an E-commerce Order Fulfillment System [/INST]1. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Email - Phone Number - Shipping Address - Billing Address - Payment Method (e.g., Credit Card, PayPal) - Account Status (e.g., Active, Suspended)2. **Products:** - ProductID (Primary Key) - SKU (Stock Keeping Unit, Unique Identifier) - Product Name - Description - Category (e.g., Electronics, Apparel, Books) - Unit Price - Quantity in Stock - Supplier (SupplierID, Foreign Key) - Product Image URL3. **Orders:** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date - Order Status (e.g., Pending, Shipped, Delivered) - Total Amount - Shipping Method (e.g., Standard, Express) - Tracking Number - Shipping Address - Billing Address - Payment Transaction ID - Payment Status (e.g., Pending, Approved)4. **Order Items (Line Items in Orders):** - OrderItemID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Unit Price - Subtotal5. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address6. **Shipping Carriers (e.g., FedEx, UPS):** - CarrierID (Primary Key) - Carrier Name - Tracking URL7. **Payment Transactions (Records of Payment Transactions):** - TransactionID (Primary Key) - Customer (CustomerID, Foreign Key) - Order (OrderID, Foreign Key) - Transaction Date and Time - Transaction Amount - Payment Method - Transaction Status (e.g., Success, Failure) - Payment Gateway Response (e.g., Authorization Code, Response Code)8. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Customer Support, Warehouse Manager) - Registration Date - Last Login Date - Profile Picture9. **Inventory Adjustments (for tracking stock adjustments):** - AdjustmentID (Primary Key) - Product (ProductID, Foreign Key) - Adjustment Date and Time - Adjustment Type (e.g., Restock, Dispose) - Quantity Adjusted - Reason - Adjusted By (UserID, Foreign Key)</s>
|
<s>[INST] give me a database schema for an Inventory Management System [/INST]1. **Products:** - ProductID (Primary Key) - Product Code (Unique Identifier) - Product Name - Description - Category (e.g., Electronics, Apparel, Food) - Supplier (SupplierID, Foreign Key) - Unit Price - Reorder Point - Quantity in Stock - Last Restock Date2. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address - Payment Terms - Notes3. **Inventory Transactions (Records of Inventory Movements):** - TransactionID (Primary Key) - Product (ProductID, Foreign Key) - Transaction Date and Time - Transaction Type (e.g., Purchase, Sale, Return) - Quantity - Unit Cost - Total Cost - Transaction Description4. **Customers (if applicable for sales tracking):** - CustomerID (Primary Key) - Customer Name - Contact Person - Contact Number - Email - Address - Payment Terms5. **Sales Orders (Records of Sales Orders):** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date - Order Status (e.g., Pending, Shipped, Delivered) - Total Amount - Notes6. **Order Details (Line Items in Sales Orders):** - DetailID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Unit Price - Subtotal7. **Purchase Orders (Records of Purchase Orders):** - PurchaseOrderID (Primary Key) - Supplier (SupplierID, Foreign Key) - Order Date - Expected Delivery Date - Order Status (e.g., Placed, Shipped, Received) - Total Amount - Notes8. **Purchase Order Details (Line Items in Purchase Orders):** - DetailID (Primary Key) - PurchaseOrder (PurchaseOrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Unit Cost - Subtotal9. **Inventory Adjustments (for tracking stock adjustments):** - AdjustmentID (Primary Key) - Product (ProductID, Foreign Key) - Adjustment Date and Time - Adjustment Type (e.g., Restock, Dispose) - Quantity Adjusted - Reason - Adjusted By (UserID, Foreign Key)10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Inventory Manager) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Customer Support Ticketing System [/INST]1. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Email - Phone Number - Address2. **Support Agents:** - AgentID (Primary Key) - First Name - Last Name - Email - Phone Number - Department (e.g., Technical Support, Billing) - Supervisor (AgentID, Foreign Key)3. **Tickets:** - TicketID (Primary Key) - Customer (CustomerID, Foreign Key) - Agent (AgentID, Foreign Key) - Creation Date and Time - Last Update Date and Time - Status (e.g., Open, In Progress, Closed) - Priority (e.g., High, Medium, Low) - Subject - Description4. **Ticket Comments (for Communication):** - CommentID (Primary Key) - Ticket (TicketID, Foreign Key) - User (Customer or Agent, Foreign Key) - Comment Date and Time - Comment Text5. **Attachments (for Tickets and Comments):** - AttachmentID (Primary Key) - Ticket (TicketID, Foreign Key, optional) - Comment (CommentID, Foreign Key, optional) - File Name - File Type - File Size - Upload Date6. **Categories (Ticket Categories):** - CategoryID (Primary Key) - Category Name - Parent Category (for hierarchical categorization)7. **Departments (Support Departments):** - DepartmentID (Primary Key) - Department Name - Manager (AgentID, Foreign Key)8. **Ticket History (for tracking ticket changes):** - HistoryID (Primary Key) - Ticket (TicketID, Foreign Key) - User (Customer or Agent, Foreign Key) - Action (e.g., Created, Updated, Closed) - Date and Time - Description of Action9. **Knowledge Base Articles (for reference):** - ArticleID (Primary Key) - Title - Content - Author (AgentID, Foreign Key) - Creation Date10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Support Agent, Customer) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Asset Tracking System [/INST]1. **Assets:** - AssetID (Primary Key) - Asset Tag (Unique Identifier) - Asset Name - Description - Category (e.g., Computers, Furniture, Vehicles) - Purchase Date - Purchase Price - Current Value - Location - Status (e.g., In Use, Decommissioned, Lost) - Assigned User (UserID, Foreign Key) - Warranty Expiry Date - Depreciation Method (e.g., Straight-Line, Declining Balance)2. **Users (for asset assignments):** - UserID (Primary Key) - First Name - Last Name - Email - Department - Job Title - Phone Number - Location3. **Departments:** - DepartmentID (Primary Key) - Department Name - Manager (UserID, Foreign Key)4. **Asset Assignments (Records of Asset Assignments):** - AssignmentID (Primary Key) - Asset (AssetID, Foreign Key) - User (UserID, Foreign Key) - Assignment Date - Expected Return Date - Return Date - Notes5. **Maintenance Records (Records of Asset Maintenance):** - MaintenanceID (Primary Key) - Asset (AssetID, Foreign Key) - Maintenance Date - Maintenance Type (e.g., Routine, Repair) - Description - Cost - Technician (UserID, Foreign Key)6. **Disposal Records (Records of Asset Disposals):** - DisposalID (Primary Key) - Asset (AssetID, Foreign Key) - Disposal Date - Disposal Type (e.g., Sale, Scrapping) - Sale Price - Buyer Information - Reason for Disposal7. **Categories (Asset Categories):** - CategoryID (Primary Key) - Category Name - Parent Category (for hierarchical categorization)8. **Vendors (Suppliers of Assets):** - VendorID (Primary Key) - Vendor Name - Contact Person - Contact Number - Email - Address9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Asset Manager, Technician) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for an Employee Benefits Management System [/INST]1. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID or Employee ID - Date of Hire - Department (Foreign Key) - Employment Status (e.g., Full-time, Part-time) - Supervisor (EmployeeID, Foreign Key)2. **Departments:** - DepartmentID (Primary Key) - Department Name - ManagerID (EmployeeID, Foreign Key)3. **Benefits Programs:** - ProgramID (Primary Key) - Program Name - Description - Enrollment Start Date - Enrollment End Date4. **Benefit Types (e.g., Health Insurance, Retirement):** - BenefitTypeID (Primary Key) - Benefit Type Name - Description5. **Employee Benefits Enrollment:** - EnrollmentID (Primary Key) - Employee (EmployeeID, Foreign Key) - Benefit Program (ProgramID, Foreign Key) - Enrollment Date - Status (e.g., Enrolled, Not Enrolled) 6. **Benefit Coverage (Details of Benefits Offered):** - CoverageID (Primary Key) - Benefit Type (BenefitTypeID, Foreign Key) - Benefit Program (ProgramID, Foreign Key) - Coverage Name - Coverage Description - Coverage Amount - Coverage Start Date - Coverage End Date7. **Benefit Deductions (e.g., Health Insurance Premiums):** - DeductionID (Primary Key) - Employee (EmployeeID, Foreign Key) - Benefit Type (BenefitTypeID, Foreign Key) - Deduction Amount - Deduction Start Date - Deduction End Date8. **Beneficiary Information (e.g., Life Insurance Beneficiaries):** - BeneficiaryID (Primary Key) - Employee (EmployeeID, Foreign Key) - Beneficiary Name - Relationship - Date of Birth - Contact Information9. **Claims (e.g., Health Insurance Claims):** - ClaimID (Primary Key) - Employee (EmployeeID, Foreign Key) - Benefit Type (BenefitTypeID, Foreign Key) - Claim Date - Claim Amount - Claim Status (e.g., Pending, Approved, Rejected) - Reason for Claim10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Benefits Manager) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Document Management System [/INST]1. **Documents:** - DocumentID (Primary Key) - Title - Description - Author - Upload Date and Time - File Name - File Type - File Size - Location (e.g., Folder Path) - Tags (for categorization) - Access Level (e.g., Public, Private) 2. **Folders (for Organizing Documents):** - FolderID (Primary Key) - Folder Name - Parent Folder (for hierarchical organization) - Created Date and Time - Created By (UserID, Foreign Key)3. **Access Rights (Document Access Permissions):** - AccessRightID (Primary Key) - Document (DocumentID, Foreign Key) - User (UserID, Foreign Key) - Permission Level (e.g., Read, Write, Delete)4. **Document Versions (if versioning is enabled):** - VersionID (Primary Key) - Document (DocumentID, Foreign Key) - Version Number - Author (UserID, Foreign Key) - Upload Date and Time - File Name - File Type - File Size5. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, User) - Registration Date - Last Login Date - Profile Picture6. **Audit Trail (for Document Activity Tracking):** - AuditTrailID (Primary Key) - Document (DocumentID, Foreign Key) - User (UserID, Foreign Key) - Action (e.g., Viewed, Edited, Deleted) - Date and Time - Details (description of the action)7. **Document Categories (for Categorizing Documents):** - CategoryID (Primary Key) - Category Name - Parent Category (for hierarchical categorization)8. **Document Comments (for Collaborative Editing):** - CommentID (Primary Key) - Document (DocumentID, Foreign Key) - User (UserID, Foreign Key) - Comment Text - Comment Date and Time9. **Document Workflow (if workflow management is included):** - WorkflowID (Primary Key) - Document (DocumentID, Foreign Key) - Workflow Status (e.g., Draft, In Review, Approved) - Assigned User (UserID, Foreign Key) - Due Date - Comments (related to the workflow step)10. **Document Templates (if templates are supported):** - TemplateID (Primary Key) - Template Name - Description - Author - Template File Name - Template File Type - Template File Size</s>
|
<s>[INST] give me a database schema for a Sales and CRM Analytics System [/INST]1. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Email - Phone Number - Address - Company Name (if applicable) - Industry - Lead Source - Lead Status (e.g., Cold, Warm, Hot) 2. **Opportunities (Sales Opportunities):** - OpportunityID (Primary Key) - Customer (CustomerID, Foreign Key) - Opportunity Name - Description - Sales Stage (e.g., Prospect, Negotiation, Closed Won) - Probability of Close - Expected Revenue - Close Date - Sales Representative (UserID, Foreign Key) 3. **Contacts (Related to Customers):** - ContactID (Primary Key) - Customer (CustomerID, Foreign Key) - First Name - Last Name - Email - Phone Number - Title - Department 4. **Sales Representatives:** - UserID (Primary Key) - First Name - Last Name - Email - Phone Number - Role - Territory - Manager (UserID, Foreign Key) 5. **Activities (e.g., Calls, Meetings, Emails):** - ActivityID (Primary Key) - Opportunity (OpportunityID, Foreign Key, optional) - Contact (ContactID, Foreign Key, optional) - User (UserID, Foreign Key) - Activity Type (e.g., Call, Meeting, Email) - Activity Date and Time - Subject - Description 6. **Products:** - ProductID (Primary Key) - Product Name - Description - Unit Price - Category (e.g., Electronics, Apparel) 7. **Orders:** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date - Order Status (e.g., In Progress, Shipped) - Total Amount 8. **Order Details (Line Items in Orders):** - DetailID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity - Unit Price - Subtotal 9. **Campaigns (Marketing Campaigns):** - CampaignID (Primary Key) - Campaign Name - Start Date - End Date - Budget - Campaign Owner (UserID, Foreign Key) 10. **Campaign Responses (Responses to Marketing Campaigns):** - ResponseID (Primary Key) - Campaign (CampaignID, Foreign Key) - Customer (CustomerID, Foreign Key) - Response Date and Time - Response Type (e.g., Clicked, Converted, Unsubscribed) 11. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Sales Representative) - Registration Date - Last Login Date - Profile Picture</s>
|
<s>[INST] give me a database schema for a Project Resource Allocation System [/INST]1. **Projects:** - ProjectID (Primary Key) - Project Name - Description - Start Date - End Date - Project Manager (UserID, Foreign Key) - Status (e.g., In Progress, Completed, On Hold)2. **Resources:** - ResourceID (Primary Key) - Resource Name - Role (e.g., Developer, Designer, Tester) - Department - Availability (e.g., Full-time, Part-time) - Rate per Hour - Contact Information (Email, Phone) - Skillset3. **Project Tasks:** - TaskID (Primary Key) - Project (ProjectID, Foreign Key) - Task Name - Description - Start Date - Due Date - Priority (e.g., High, Medium, Low) - Status (e.g., Not Started, In Progress, Completed)4. **Resource Allocation:** - AllocationID (Primary Key) - Project (ProjectID, Foreign Key) - Resource (ResourceID, Foreign Key) - Task (TaskID, Foreign Key) - Allocation Start Date - Allocation End Date - Allocated Hours per Day5. **Project Milestones:** - MilestoneID (Primary Key) - Project (ProjectID, Foreign Key) - Milestone Name - Description - Target Date - Status (e.g., Not Achieved, Achieved)6. **Project Dependencies:** - DependencyID (Primary Key) - Project (ProjectID, Foreign Key) - Dependent Project (ProjectID, Foreign Key) - Dependency Type (e.g., Finish-to-Start, Start-to-Start) - Dependency Description7. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Project Manager, Team Member) - Registration Date - Last Login Date - Profile Picture8. **Project Budgets:** - BudgetID (Primary Key) - Project (ProjectID, Foreign Key) - Budget Name - Budget Amount - Expenses - Remaining Budget9. **Project Notes:** - NoteID (Primary Key) - Project (ProjectID, Foreign Key) - User (UserID, Foreign Key) - Note Text - Note Date and Time10. **Resource Skills:** - SkillID (Primary Key) - Resource (ResourceID, Foreign Key) - Skill Name - Skill Level</s>
|
<s>[INST] give me a database schema for a Supply Chain Management System [/INST]1. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Number - Email - Address - Payment Terms - Supplier Rating - Notes2. **Products:** - ProductID (Primary Key) - Product Name - Description - Category (e.g., Electronics, Apparel) - Unit Price - Stock Quantity - Reorder Level - Supplier (SupplierID, Foreign Key) - Notes3. **Warehouses:** - WarehouseID (Primary Key) - Warehouse Name - Location - Capacity - Warehouse Manager (UserID, Foreign Key) - Notes4. **Inventory:** - InventoryID (Primary Key) - Product (ProductID, Foreign Key) - Warehouse (WarehouseID, Foreign Key) - Quantity - Date Received - Expiry Date - Notes5. **Orders:** - OrderID (Primary Key) - Order Date - Supplier (SupplierID, Foreign Key) - Warehouse (WarehouseID, Foreign Key) - Status (e.g., Open, Shipped, Delivered) - Total Amount - Notes6. **Order Details (Line Items in Orders):** - DetailID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity - Unit Price - Subtotal7. **Shipments:** - ShipmentID (Primary Key) - Order (OrderID, Foreign Key) - Shipment Date - Carrier - Tracking Number - Notes8. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Warehouse Manager) - Registration Date - Last Login Date - Profile Picture9. **Purchase Requests:** - RequestID (Primary Key) - Request Date - Requester (UserID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity - Status (e.g., Pending, Approved, Rejected) - Notes10. **Purchase History:** - PurchaseHistoryID (Primary Key) - Product (ProductID, Foreign Key) - Supplier (SupplierID, Foreign Key) - Quantity Purchased - Purchase Date - Unit Price - Total Amount</s>
|
<s>[INST] give me a database schema for an Online Learning Platform [/INST]1. **Courses:** - CourseID (Primary Key) - Course Title - Course Description - Instructor (UserID, Foreign Key) - Category (e.g., Programming, Business) - Enrollment Fee - Start Date - End Date - Course Duration - Course Rating - Status (e.g., Published, In Progress, Completed) - Notes2. **Modules (Units or Sections within a Course):** - ModuleID (Primary Key) - Course (CourseID, Foreign Key) - Module Title - Module Description - Module Order (for sequencing) - Status (e.g., Published, In Progress, Completed) - Notes3. **Lessons (Content Units within Modules):** - LessonID (Primary Key) - Module (ModuleID, Foreign Key) - Lesson Title - Lesson Content (e.g., Text, Video URL) - Lesson Order (for sequencing) - Status (e.g., Published, In Progress, Completed) - Notes4. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Student, Instructor, Admin) - Registration Date - Last Login Date - Profile Picture5. **Enrollments (User Enrollment in Courses):** - EnrollmentID (Primary Key) - User (UserID, Foreign Key) - Course (CourseID, Foreign Key) - Enrollment Date - Status (e.g., Enrolled, Completed, Dropped) - Notes6. **Course Progress (User Progress Tracking):** - ProgressID (Primary Key) - User (UserID, Foreign Key) - Course (CourseID, Foreign Key) - Module (ModuleID, Foreign Key) - Lesson (LessonID, Foreign Key) - Last Completed Lesson (LessonID, Foreign Key) - Completion Status (e.g., Not Started, In Progress, Completed) - Notes7. **Instructor Assignments (Assignments created by Instructors):** - AssignmentID (Primary Key) - Instructor (UserID, Foreign Key) - Course (CourseID, Foreign Key) - Assignment Title - Assignment Description - Due Date - Max Points - Status (e.g., Published, In Progress, Completed) - Notes8. **Student Submissions (Student Responses to Assignments):** - SubmissionID (Primary Key) - Assignment (AssignmentID, Foreign Key) - User (UserID, Foreign Key) - Submission Date - Submission Content (e.g., Text, File Upload) - Points Earned - Feedback - Notes9. **Quizzes and Exams:** - QuizID (Primary Key) - Course (CourseID, Foreign Key) - Quiz Title - Quiz Description - Quiz Duration - Pass Mark - Status (e.g., Published, In Progress, Completed) - Notes10. **Quiz Questions:** - QuestionID (Primary Key) - Quiz (QuizID, Foreign Key) - Question Text - Question Type (e.g., Multiple Choice, True/False, Essay) - Correct Answer(s) - Points - Notes11. **User Quiz Attempts:** - AttemptID (Primary Key) - User (UserID, Foreign Key) - Quiz (QuizID, Foreign Key) - Attempt Start Time - Attempt End Time - Score - Status (e.g., In Progress, Completed) - Notes</s>
|
<s>[INST] give me a database schema for a Healthcare Patient Records System [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID - Insurance ID - Emergency Contact Name - Emergency Contact Number - Notes2. **Medical Records:** - RecordID (Primary Key) - Patient (PatientID, Foreign Key) - Admission Date - Discharge Date - Diagnosis - Treatment - Medications - Lab Results - Imaging Results - Physician (UserID, Foreign Key) - Status (e.g., Active, Discharged, Deceased) - Notes3. **Physicians and Healthcare Providers:** - ProviderID (Primary Key) - Provider Name - Specialty - Contact Number - Email - Address - License Number - Notes4. **Appointments:** - AppointmentID (Primary Key) - Patient (PatientID, Foreign Key) - Physician (UserID, Foreign Key) - Appointment Date and Time - Appointment Type (e.g., Consultation, Follow-up) - Status (e.g., Scheduled, Completed, Canceled) - Notes5. **Prescriptions:** - PrescriptionID (Primary Key) - Patient (PatientID, Foreign Key) - Physician (UserID, Foreign Key) - Prescription Date - Medications Prescribed - Dosage Instructions - Notes6. **Lab Tests:** - TestID (Primary Key) - Patient (PatientID, Foreign Key) - Physician (UserID, Foreign Key) - Test Date - Test Type (e.g., Blood Test, Urine Test) - Test Results - Lab Technician (UserID, Foreign Key) - Notes7. **Imaging Studies:** - ImagingID (Primary Key) - Patient (PatientID, Foreign Key) - Physician (UserID, Foreign Key) - Study Date - Study Type (e.g., X-ray, MRI) - Study Results - Radiologist (UserID, Foreign Key) - Notes8. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Physician, Nurse) - Registration Date - Last Login Date - Profile Picture - Notes9. **Insurance Providers:** - InsuranceProviderID (Primary Key) - Provider Name - Contact Number - Email - Address - Policy Information - Notes10. **Billing and Invoices:** - InvoiceID (Primary Key) - Patient (PatientID, Foreign Key) - Billing Date - Total Amount - Payment Status (e.g., Unpaid, Paid) - Notes</s>
|
<s>[INST] give me a database schema for a Logistic System [/INST]1. **Shippers:** - ShipperID (Primary Key) - Shipper Name - Contact Person - Contact Number - Email - Address - Notes2. **Customers:** - CustomerID (Primary Key) - Customer Name - Contact Person - Contact Number - Email - Address - Notes3. **Orders:** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date - Required Delivery Date - Shipped Date - Shipping Method - Order Status (e.g., Processing, Shipped, Delivered) - Total Amount - Notes4. **Products:** - ProductID (Primary Key) - Product Name - Description - Category (e.g., Electronics, Apparel) - Unit Price - Stock Quantity - Notes5. **Order Details (Line Items in Orders):** - DetailID (Primary Key) - Order (OrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity - Unit Price - Subtotal - Notes6. **Employees (for Warehouse and Delivery):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Notes7. **Warehouses:** - WarehouseID (Primary Key) - Warehouse Name - Location - Manager (EmployeeID, Foreign Key) - Capacity - Notes8. **Inventory:** - InventoryID (Primary Key) - Product (ProductID, Foreign Key) - Warehouse (WarehouseID, Foreign Key) - Quantity - Notes9. **Shipments:** - ShipmentID (Primary Key) - Order (OrderID, Foreign Key) - Shipper (ShipperID, Foreign Key) - Employee (EmployeeID, Foreign Key) - Shipment Date - Estimated Arrival Date - Shipping Cost - Notes10. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Warehouse Manager, Delivery Driver) - Registration Date - Last Login Date - Profile Picture - Notes11. **Delivery Routes:** - RouteID (Primary Key) - Warehouse (WarehouseID, Foreign Key) - Destination - Distance - Estimated Delivery Time - Notes12. **Delivery Logs:** - LogID (Primary Key) - Shipment (ShipmentID, Foreign Key) - Employee (EmployeeID, Foreign Key) - Delivery Date - Delivery Status (e.g., Delivered, In Transit) - Notes13. **Shipping Costs (by Shipping Method):** - CostID (Primary Key) - Shipping Method - Cost Amount - Notes</s>
|
<s>[INST] give me a database schema for an Event Management System [/INST]1. **Events:** - EventID (Primary Key) - Event Name - Event Description - Event Date and Time - Location - Organizer (UserID, Foreign Key) - Category (e.g., Conference, Concert, Wedding) - Registration Deadline - Status (e.g., Planned, Ongoing, Completed) - Notes2. **Participants:** - ParticipantID (Primary Key) - Event (EventID, Foreign Key) - First Name - Last Name - Email - Contact Number - Registration Date and Time - Ticket Type - Ticket Price - Check-In Status (e.g., Checked-In, Not Checked-In) - Notes3. **Organizers:** - OrganizerID (Primary Key) - First Name - Last Name - Organization (if applicable) - Email - Contact Number - Event Management Role (e.g., Event Manager, Coordinator) - Notes4. **Venues:** - VenueID (Primary Key) - Venue Name - Address - Capacity - Contact Person - Contact Number - Email - Notes5. **Agendas (Event Schedules):** - AgendaID (Primary Key) - Event (EventID, Foreign Key) - Session Title - Start Time - End Time - Speaker - Session Description - Notes6. **Sponsors:** - SponsorID (Primary Key) - Sponsor Name - Contact Person - Contact Number - Email - Sponsorship Level - Notes7. **Sessions (e.g., Workshops, Panels):** - SessionID (Primary Key) - Event (EventID, Foreign Key) - Session Title - Session Description - Speaker(s) - Start Time - End Time - Notes8. **Feedback and Surveys:** - FeedbackID (Primary Key) - Participant (ParticipantID, Foreign Key) - Event (EventID, Foreign Key) - Feedback Date and Time - Feedback Rating - Comments - Notes9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Event Manager) - Registration Date and Time - Last Login Date and Time - Profile Picture - Notes10. **Event Expenses:** - ExpenseID (Primary Key) - Event (EventID, Foreign Key) - Expense Description - Expense Date - Expense Amount - Notes</s>
|
<s>[INST] give me a database schema for an Asset Tracking and Management System [/INST]1. **Assets:** - AssetID (Primary Key) - Asset Name - Description - Category (e.g., IT Equipment, Furniture, Vehicles) - Serial Number - Manufacturer - Model - Acquisition Date - Purchase Price - Current Value - Status (e.g., In Use, In Repair, Decommissioned) - Location (e.g., Building, Room, GPS Coordinates) - Assigned User (UserID, Foreign Key) - Notes2. **Users (for asset assignment):** - UserID (Primary Key) - First Name - Last Name - Employee ID or Username - Email - Contact Number - Department - Job Title - Notes3. **Departments:** - DepartmentID (Primary Key) - Department Name - Department Head (UserID, Foreign Key) - Location (e.g., Building, Floor) - Notes4. **Maintenance Records:** - MaintenanceID (Primary Key) - Asset (AssetID, Foreign Key) - Maintenance Date - Maintenance Type (e.g., Preventive, Corrective) - Maintenance Description - Cost - Maintenance Provider or Technician - Notes5. **Assignments (Asset User History):** - AssignmentID (Primary Key) - Asset (AssetID, Foreign Key) - Assigned User (UserID, Foreign Key) - Assignment Date - Return Date (if applicable) - Notes6. **Asset Categories:** - CategoryID (Primary Key) - Category Name - Category Description - Notes7. **Vendors (for asset procurement):** - VendorID (Primary Key) - Vendor Name - Contact Person - Contact Number - Email - Address - Notes8. **Depreciation Records:** - DepreciationID (Primary Key) - Asset (AssetID, Foreign Key) - Depreciation Date - Depreciation Method (e.g., Straight Line, Double Declining Balance) - Depreciation Amount - Notes9. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Asset Manager) - Registration Date and Time - Last Login Date and Time - Profile Picture - Notes10. **Asset Disposal Records:** - DisposalID (Primary Key) - Asset (AssetID, Foreign Key) - Disposal Date - Disposal Method (e.g., Sale, Donation, Recycling) - Disposal Amount (if sold) - Notes</s>
|
<s>[INST] give me a database schema for a Government Records Management System [/INST]1. **Records:** - RecordID (Primary Key) - Record Title - Record Type (e.g., Legal, Financial, Personnel) - Record Description - Creation Date - Document Date - Creator (UserID, Foreign Key) - Location (e.g., Department, Office, Physical Storage) - Access Level (e.g., Public, Confidential, Restricted) - Status (e.g., Active, Archived, Deleted) - Notes2. **Users (for access and management):** - UserID (Primary Key) - First Name - Last Name - Username - Password (Hashed) - Email - Role (e.g., Admin, Records Manager, User) - Department - Contact Number - Registration Date - Last Login Date - Profile Picture - Notes3. **Departments:** - DepartmentID (Primary Key) - Department Name - Department Head (UserID, Foreign Key) - Location (e.g., Building, Floor) - Notes4. **Access Permissions:** - PermissionID (Primary Key) - Record (RecordID, Foreign Key) - User (UserID, Foreign Key) - Permission Type (e.g., View, Edit, Delete) - Notes5. **Document Versions:** - VersionID (Primary Key) - Record (RecordID, Foreign Key) - Version Number - Author (UserID, Foreign Key) - Version Date - File Attachment (e.g., PDF, DOCX) - Notes6. **Record Categories:** - CategoryID (Primary Key) - Category Name - Category Description - Notes7. **Audit Trails (for tracking record changes):** - AuditID (Primary Key) - Record (RecordID, Foreign Key) - User (UserID, Foreign Key) - Action (e.g., Viewed, Edited, Deleted) - Action Date and Time - Notes8. **Record Tags (for categorization):** - TagID (Primary Key) - Tag Name - Notes9. **Retention Policies (for record lifecycle management):** - PolicyID (Primary Key) - Policy Name - Description - Retention Period - Trigger Events (e.g., End of Fiscal Year) - Notes10. **Archived Records:** - ArchiveID (Primary Key) - Record (RecordID, Foreign Key) - Archive Date - Archive Location (e.g., Offsite Storage) - Archive Notes</s>
|
<s>[INST] give me a database schema for an Energy Consumption Monitoring System [/INST]1. **Meters:** - MeterID (Primary Key) - Meter Name - Location (e.g., Building, Floor, Room) - Installation Date - Meter Type (e.g., Electricity, Water, Gas) - Notes2. **Readings:** - ReadingID (Primary Key) - Meter (MeterID, Foreign Key) - Reading Date and Time - Consumption Value (e.g., kWh, Cubic Meters) - Notes3. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Energy Manager) - Registration Date and Time - Last Login Date and Time - Profile Picture - Notes4. **Locations (for grouping meters):** - LocationID (Primary Key) - Location Name - Parent Location (LocationID, Foreign Key, for hierarchical organization) - Notes5. **Alerts and Notifications:** - AlertID (Primary Key) - Meter (MeterID, Foreign Key) - Alert Type (e.g., High Consumption, Fault) - Trigger Condition (e.g., Consumption > Threshold) - Alert Date and Time - Notification Recipients (UserIDs, Foreign Keys) - Notes6. **Energy Categories (e.g., Electricity, Water, Gas):** - CategoryID (Primary Key) - Category Name - Category Description - Notes7. **Cost Data (if tracking energy costs):** - CostID (Primary Key) - Meter (MeterID, Foreign Key) - Cost Date - Cost Amount - Currency - Notes8. **Maintenance Logs (for meter maintenance):** - MaintenanceID (Primary Key) - Meter (MeterID, Foreign Key) - Maintenance Date - Maintenance Type (e.g., Calibration, Repair) - Maintenance Description - Cost - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Login, Data Entry) - Action Date and Time - Notes10. **Reports and Dashboards (if generating energy reports):** - ReportID (Primary Key) - Report Name - Report Type (e.g., Monthly Consumption, Cost Analysis) - Report Generation Date - Report Content (e.g., Charts, Tables) - Notes</s>
|
<s>[INST] give me a database schema for a Research Proposal Management System [/INST]1. **Proposals:** - ProposalID (Primary Key) - Proposal Title - Proposal Description - Principal Investigator (UserID, Foreign Key) - Co-Investigators (List of UserIDs, Foreign Keys) - Submission Date - Status (e.g., Draft, Submitted, Approved, Rejected) - Funding Amount - Research Start Date - Research End Date - Keywords (Tags) - Notes2. **Users (for system access):** - UserID (Primary Key) - Username - Password (Hashed) - First Name - Last Name - Email - Role (e.g., Admin, Researcher) - Department - Contact Number - Registration Date and Time - Last Login Date and Time - Profile Picture - Notes3. **Departments:** - DepartmentID (Primary Key) - Department Name - Department Head (UserID, Foreign Key) - Location (e.g., Building, Floor) - Notes4. **Reviewers (for proposal evaluation):** - ReviewerID (Primary Key) - First Name - Last Name - Email - Expertise Areas (Tags) - Department - Notes5. **Review Comments (for proposal feedback):** - CommentID (Primary Key) - Proposal (ProposalID, Foreign Key) - Reviewer (ReviewerID, Foreign Key) - Comment Date and Time - Comment Text - Notes6. **Attachments (for proposal documents):** - AttachmentID (Primary Key) - Proposal (ProposalID, Foreign Key) - File Name - File Type (e.g., PDF, DOCX) - File Size - Upload Date and Time - Notes7. **Proposal Categories:** - CategoryID (Primary Key) - Category Name - Category Description - Notes8. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Login, Proposal Submission) - Action Date and Time - Notes9. **Reports and Analytics (if generating research reports):** - ReportID (Primary Key) - Report Name - Report Type (e.g., Funding Allocation, Research Progress) - Report Generation Date - Report Content (e.g., Charts, Tables) - Notes10. **Proposal Notes (for internal use):** - NoteID (Primary Key) - Proposal (ProposalID, Foreign Key) - User (UserID, Foreign Key) - Note Date and Time - Note Text - Notes</s>
|
<s>[INST] give me a database schema for a Travel Reservation and Booking System [/INST]1. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Email - Contact Number - Address - Passport or ID Number - Date of Birth - Notes2. **Bookings:** - BookingID (Primary Key) - Customer (CustomerID, Foreign Key) - Booking Date and Time - Total Price - Status (e.g., Confirmed, Pending, Cancelled) - Payment Status (e.g., Paid, Unpaid) - Payment Method (e.g., Credit Card, PayPal) - Notes3. **Flights:** - FlightID (Primary Key) - Airline Name - Flight Number - Departure Airport - Arrival Airport - Departure Date and Time - Arrival Date and Time - Ticket Price - Available Seats - Notes4. **Hotels:** - HotelID (Primary Key) - Hotel Name - Location - Check-In Date - Check-Out Date - Room Type - Room Price - Available Rooms - Notes5. **Car Rentals:** - RentalID (Primary Key) - Rental Agency - Car Type - Pickup Location - Return Location - Pickup Date and Time - Return Date and Time - Rental Price - Available Cars - Notes6. **Travel Packages:** - PackageID (Primary Key) - Package Name - Description - Destinations (List of Locations) - Price - Notes7. **Reviews and Ratings (for flights, hotels, and rentals):** - ReviewID (Primary Key) - Customer (CustomerID, Foreign Key) - Review Date and Time - Rating (e.g., 1-5 stars) - Review Text - Notes8. **Notifications (for booking updates and alerts):** - NotificationID (Primary Key) - Customer (CustomerID, Foreign Key) - Notification Date and Time - Notification Type (e.g., Booking Confirmation, Flight Delay) - Notification Content - Notes9. **Promotions and Discounts:** - PromotionID (Primary Key) - Promotion Code - Discount Percentage - Expiration Date - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (CustomerID, Foreign Key) - Action (e.g., Booking, Payment) - Action Date and Time - Notes11. **Locations (for airport and rental locations):** - LocationID (Primary Key) - Location Name - Address - Notes12. **Itinerary (for storing booked items in a booking):** - ItineraryID (Primary Key) - Booking (BookingID, Foreign Key) - Flight (FlightID, Foreign Key) - Hotel (HotelID, Foreign Key) - Car Rental (RentalID, Foreign Key) - Notes</s>
|
<s>[INST] give me a database schema for a Supplier Relationship Management System [/INST]1. **Suppliers:** - SupplierID (Primary Key) - Supplier Name - Contact Person - Contact Email - Contact Phone Number - Address - Payment Terms (e.g., Net 30, Net 60) - Notes2. **Products:** - ProductID (Primary Key) - Product Name - Description - Unit Price - Supplier (SupplierID, Foreign Key) - Lead Time (in days) - Minimum Order Quantity - Notes3. **Purchase Orders:** - PurchaseOrderID (Primary Key) - Supplier (SupplierID, Foreign Key) - Order Date - Expected Delivery Date - Status (e.g., Open, In Progress, Shipped, Received) - Notes4. **Purchase Order Items:** - OrderItemID (Primary Key) - Purchase Order (PurchaseOrderID, Foreign Key) - Product (ProductID, Foreign Key) - Quantity Ordered - Quantity Received - Unit Price - Total Price - Notes5. **Invoices:** - InvoiceID (Primary Key) - Supplier (SupplierID, Foreign Key) - Invoice Date - Due Date - Total Amount - Status (e.g., Unpaid, Paid) - Notes6. **Payments:** - PaymentID (Primary Key) - Invoice (InvoiceID, Foreign Key) - Payment Date - Amount Paid - Payment Method (e.g., Check, Bank Transfer) - Notes7. **Supplier Contacts:** - ContactID (Primary Key) - Supplier (SupplierID, Foreign Key) - Contact Name - Contact Email - Contact Phone Number - Notes8. **Supplier Ratings and Reviews:** - ReviewID (Primary Key) - Supplier (SupplierID, Foreign Key) - Review Date - Rating (e.g., 1-5 stars) - Review Text - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Purchase, Payment) - Action Date and Time - Notes10. **Supplier Categories (for categorizing suppliers):** - CategoryID (Primary Key) - Category Name - Category Description - Notes11. **Supplier Contracts:** - ContractID (Primary Key) - Supplier (SupplierID, Foreign Key) - Contract Name - Contract Start Date - Contract End Date - Contract Terms and Conditions - Notes12. **Delivery Tracking (for tracking product deliveries):** - TrackingID (Primary Key) - Purchase Order (PurchaseOrderID, Foreign Key) - Carrier Name - Tracking Number - Estimated Delivery Date - Actual Delivery Date - Notes</s>
|
<s>[INST] give me a database schema for a Maintenance and Repairs Tracking System [/INST]1. **Assets:** - AssetID (Primary Key) - Asset Name - Asset Type - Manufacturer - Model - Serial Number - Purchase Date - Warranty Expiration Date - Current Location - Notes2. **Maintenance Requests:** - RequestID (Primary Key) - Asset (AssetID, Foreign Key) - Requester (UserID, Foreign Key) - Request Date and Time - Description of Issue - Priority (e.g., Low, Medium, High) - Status (e.g., Open, In Progress, Completed) - Assigned Technician (UserID, Foreign Key) - Estimated Completion Date - Actual Completion Date - Notes3. **Maintenance Technicians:** - TechnicianID (Primary Key) - First Name - Last Name - Contact Email - Contact Phone Number - Notes4. **Maintenance Logs:** - LogID (Primary Key) - Request (RequestID, Foreign Key) - Technician (TechnicianID, Foreign Key) - Start Date and Time - End Date and Time - Description of Work Done - Parts Used (List of Part Names) - Labor Hours - Total Cost - Notes5. **Spare Parts Inventory:** - PartID (Primary Key) - Part Name - Part Description - Supplier - Part Number - Quantity in Stock - Reorder Level - Unit Price - Notes6. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Request Maintenance, Complete Maintenance) - Action Date and Time - Notes7. **Maintenance Categories (for categorizing maintenance requests):** - CategoryID (Primary Key) - Category Name - Category Description - Notes8. **Scheduled Maintenance Tasks:** - TaskID (Primary Key) - Asset (AssetID, Foreign Key) - Task Name - Task Description - Scheduled Date and Time - Technician (TechnicianID, Foreign Key) - Notes9. **Work Orders (for planned maintenance work):** - WorkOrderID (Primary Key) - Task (TaskID, Foreign Key) - Technician (TechnicianID, Foreign Key) - Start Date and Time - End Date and Time - Description of Work - Parts Used (List of Part Names) - Labor Hours - Total Cost - Notes10. **Maintenance Contracts:** - ContractID (Primary Key) - Asset (AssetID, Foreign Key) - Supplier - Contract Start Date - Contract End Date - Contract Terms and Conditions - Notes</s>
|
<s>[INST] give me a database schema for a Humanitarian Aid Distribution System [/INST]1. **Beneficiary Organizations:** - OrgID (Primary Key) - Organization Name - Contact Person - Contact Email - Contact Phone Number - Address - Notes2. **Aid Requests:** - RequestID (Primary Key) - Requesting Organization (OrgID, Foreign Key) - Request Date and Time - Request Status (e.g., Pending, Approved, Rejected) - Requested Aid Items (List of Item Names) - Estimated Beneficiaries - Delivery Date - Delivery Location - Notes3. **Aid Items:** - ItemID (Primary Key) - Item Name - Item Description - Unit of Measurement (e.g., Kilograms, Boxes) - Item Category - Shelf Life (in days) - Notes4. **Inventory:** - InventoryID (Primary Key) - Item (ItemID, Foreign Key) - Quantity in Stock - Expiration Date (if applicable) - Notes5. **Distribution Orders:** - OrderID (Primary Key) - Request (RequestID, Foreign Key) - Distribution Date and Time - Distribution Status (e.g., In Progress, Completed) - Notes6. **Distribution Records:** - RecordID (Primary Key) - Order (OrderID, Foreign Key) - Item (ItemID, Foreign Key) - Beneficiary Organization (OrgID, Foreign Key) - Quantity Distributed - Distribution Date and Time - Notes7. **Volunteers:** - VolunteerID (Primary Key) - First Name - Last Name - Contact Email - Contact Phone Number - Notes8. **Volunteer Assignments:** - AssignmentID (Primary Key) - Volunteer (VolunteerID, Foreign Key) - Order (OrderID, Foreign Key) - Assignment Date and Time - Assignment Status (e.g., Assigned, Completed) - Notes9. **Donors:** - DonorID (Primary Key) - Donor Name - Contact Email - Contact Phone Number - Notes10. **Donations:** - DonationID (Primary Key) - Donor (DonorID, Foreign Key) - Donation Date and Time - Donated Items (List of Item Names) - Quantity Donated - Notes11. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Request, Distribute Aid) - Action Date and Time - Notes12. **Aid Item Categories (for categorizing aid items):** - CategoryID (Primary Key) - Category Name - Category Description - Notes13. **Delivery Routes (for optimizing aid delivery):** - RouteID (Primary Key) - Route Name - Route Description - Waypoints (List of Locations) - Estimated Delivery Time - Notes</s>
|
<s>[INST] give me a database schema for a Museum Collection Management System [/INST]1. **Artifacts:** - ArtifactID (Primary Key) - Artifact Name - Description - Artist or Creator - Creation Date - Acquisition Date - Origin or Provenance - Material - Dimensions - Condition - Current Location - Acquisition Method (e.g., Purchase, Donation) - Estimated Value - Notes2. **Exhibitions:** - ExhibitionID (Primary Key) - Exhibition Name - Curator - Start Date - End Date - Description - Notes3. **Exhibition Artifacts (for mapping artifacts to exhibitions):** - ExhibitionArtifactID (Primary Key) - Exhibition (ExhibitionID, Foreign Key) - Artifact (ArtifactID, Foreign Key) - Notes4. **Artists or Creators:** - ArtistID (Primary Key) - Artist Name - Date of Birth - Date of Death (if applicable) - Nationality - Artistic Style - Biography - Notes5. **Collections (for grouping artifacts):** - CollectionID (Primary Key) - Collection Name - Curator - Description - Notes6. **Artifact Categories (for categorizing artifacts):** - CategoryID (Primary Key) - Category Name - Category Description - Notes7. **Museum Staff:** - StaffID (Primary Key) - Staff Name - Role or Position - Contact Email - Contact Phone Number - Notes8. **Loan Requests (for managing artifact loans to other institutions):** - LoanRequestID (Primary Key) - Artifact (ArtifactID, Foreign Key) - Borrowing Institution - Request Date and Time - Due Date - Status (e.g., Approved, Denied, In Progress) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (StaffID, Foreign Key) - Action (e.g., Add Artifact, Create Exhibition) - Action Date and Time - Notes10. **Artifact Materials (for detailing materials used in artifacts):** - MaterialID (Primary Key) - Material Name - Description - Notes11. **Artifact Donations (for tracking artifact donations):** - DonationID (Primary Key) - Artifact (ArtifactID, Foreign Key) - Donor Name - Donation Date - Notes12. **Artifact Tags (for adding keywords and tags to artifacts):** - TagID (Primary Key) - Artifact (ArtifactID, Foreign Key) - Tag Name - Notes13. **Artifact Images (for storing images of artifacts):** - ImageID (Primary Key) - Artifact (ArtifactID, Foreign Key) - Image Description - Image File - Notes</s>
|
<s>[INST] give me a database schema for a Marketing Campaign Management System [/INST]1. **Campaigns:** - CampaignID (Primary Key) - Campaign Name - Campaign Type (e.g., Email, Social Media, Print) - Start Date - End Date - Status (e.g., Draft, Active, Completed) - Budget - Campaign Owner (UserID, Foreign Key) - Description - Notes2. **Campaign Targets (for specifying target audiences):** - TargetID (Primary Key) - Campaign (CampaignID, Foreign Key) - Target Name - Target Description - Criteria (e.g., Demographics, Location) - Notes3. **Contacts:** - ContactID (Primary Key) - First Name - Last Name - Email - Phone Number - Address - Date of Birth - Gender - Notes4. **Lists (for grouping contacts):** - ListID (Primary Key) - List Name - List Description - List Owner (UserID, Foreign Key) - Notes5. **Campaign Messages (for creating and storing campaign content):** - MessageID (Primary Key) - Campaign (CampaignID, Foreign Key) - Message Type (e.g., Email, SMS, Social Media Post) - Message Subject - Message Body - Attachment (e.g., Image, Document) - Notes6. **Campaign Delivery (for tracking message delivery):** - DeliveryID (Primary Key) - Campaign (CampaignID, Foreign Key) - Message (MessageID, Foreign Key) - Contact (ContactID, Foreign Key) - Delivery Date and Time - Delivery Status (e.g., Sent, Delivered, Failed) - Notes7. **Marketing Channels (for managing different marketing channels):** - ChannelID (Primary Key) - Channel Name - Channel Description - Notes8. **Campaign Analytics (for tracking campaign performance):** - AnalyticsID (Primary Key) - Campaign (CampaignID, Foreign Key) - Delivery (DeliveryID, Foreign Key) - Clicks - Opens - Conversions - ROI (Return on Investment) - Notes9. **Campaign Tags (for organizing campaigns by keywords):** - TagID (Primary Key) - Campaign (CampaignID, Foreign Key) - Tag Name - Notes10. **Campaign Templates (for reusing message templates):** - TemplateID (Primary Key) - Template Name - Template Type (e.g., Email, SMS) - Template Body - Notes11. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Campaign, Send Message) - Action Date and Time - Notes12. **User Roles (for defining access levels):** - RoleID (Primary Key) - Role Name - Role Description - Notes13. **User Permissions (for assigning permissions to roles):** - PermissionID (Primary Key) - Role (RoleID, Foreign Key) - Permission Name - Permission Description - Notes</s>
|
<s>[INST] give me a database schema for an Environmental Monitoring and Reporting System [/INST]1. **Monitoring Stations:** - StationID (Primary Key) - Station Name - Location (Latitude, Longitude) - Address - Station Type (e.g., Air Quality, Water Quality) - Description - Notes2. **Parameters (for defining monitored environmental factors):** - ParameterID (Primary Key) - Parameter Name - Unit of Measurement - Description - Notes3. **Sensor Devices (for recording environmental data):** - DeviceID (Primary Key) - Device Name - Device Type (e.g., Sensor, Data Logger) - Manufacturer - Model - Installation Date - Station (StationID, Foreign Key) - Notes4. **Environmental Data (for storing recorded data):** - DataID (Primary Key) - Device (DeviceID, Foreign Key) - Parameter (ParameterID, Foreign Key) - Recorded Value - Timestamp - Notes5. **Alerts (for notifying about critical environmental conditions):** - AlertID (Primary Key) - Station (StationID, Foreign Key) - Parameter (ParameterID, Foreign Key) - Alert Type (e.g., High, Low) - Threshold Value - Alert Date and Time - Acknowledged (Yes/No) - Notes6. **Reports (for generating environmental reports):** - ReportID (Primary Key) - Report Name - Report Type (e.g., Daily, Monthly, Annual) - Start Date - End Date - Parameters Included (List of Parameter Names) - Report Generation Date and Time - Notes7. **Users:** - UserID (Primary Key) - First Name - Last Name - Username - Email - Password - Role (e.g., Admin, Operator) - Notes8. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Station, Record Data) - Action Date and Time - Notes9. **Data Trends (for visualizing historical data trends):** - TrendID (Primary Key) - Parameter (ParameterID, Foreign Key) - Chart Type (e.g., Line Chart, Bar Chart) - Data Start Date - Data End Date - Notes10. **Station Maintenance Records (for tracking station maintenance):** - MaintenanceID (Primary Key) - Station (StationID, Foreign Key) - Maintenance Date and Time - Description of Maintenance - Maintenance Type (e.g., Routine, Emergency) - Notes11. **Environmental Regulations (for storing applicable regulations):** - RegulationID (Primary Key) - Regulation Name - Description - Notes12. **Regulatory Compliance Records (for tracking compliance with regulations):** - ComplianceID (Primary Key) - Station (StationID, Foreign Key) - Regulation (RegulationID, Foreign Key) - Compliance Date - Compliance Status (e.g., Compliant, Non-Compliant) - Notes</s>
|
<s>[INST] give me a database schema for a Food Delivery and Inventory System [/INST]1. **Restaurants:** - RestaurantID (Primary Key) - Restaurant Name - Address - Contact Number - Opening Hours - Cuisine Type - Description - Notes2. **Menu Items (for restaurant menus):** - MenuItemID (Primary Key) - Restaurant (RestaurantID, Foreign Key) - Item Name - Description - Price - Category (e.g., Appetizers, Main Courses, Desserts) - Ingredients - Availability (e.g., In Stock, Out of Stock) - Notes3. **Customers:** - CustomerID (Primary Key) - First Name - Last Name - Email - Phone Number - Delivery Address - Notes4. **Orders:** - OrderID (Primary Key) - Customer (CustomerID, Foreign Key) - Order Date and Time - Delivery Date and Time - Delivery Address - Total Amount - Order Status (e.g., Processing, Delivered, Canceled) - Notes5. **Order Items (for items within an order):** - OrderItemID (Primary Key) - Order (OrderID, Foreign Key) - Menu Item (MenuItemID, Foreign Key) - Quantity - Subtotal - Notes6. **Delivery Personnel:** - PersonnelID (Primary Key) - First Name - Last Name - Contact Number - Notes7. **Delivery Routes (for optimizing delivery routes):** - RouteID (Primary Key) - Route Name - Start Location - End Location - Estimated Delivery Time - Notes8. **Delivery Assignments (for assigning deliveries to personnel):** - AssignmentID (Primary Key) - Order (OrderID, Foreign Key) - Personnel (PersonnelID, Foreign Key) - Route (RouteID, Foreign Key) - Assignment Date and Time - Status (e.g., Assigned, In Progress, Delivered) - Notes9. **Inventory Items (for tracking restaurant inventory):** - InventoryItemID (Primary Key) - Restaurant (RestaurantID, Foreign Key) - Item Name - Description - Quantity - Unit of Measurement - Category (e.g., Food, Packaging) - Notes10. **Inventory Transactions (for recording inventory changes):** - TransactionID (Primary Key) - Inventory Item (InventoryItemID, Foreign Key) - Transaction Date and Time - Transaction Type (e.g., Purchase, Usage) - Quantity Change - Remaining Quantity - Notes11. **User Accounts (for restaurant staff):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Manager, Chef, Delivery Driver) - Notes12. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Order, Update Inventory) - Action Date and Time - Notes13. **Promotions (for offering discounts or promotions):** - PromotionID (Primary Key) - Restaurant (RestaurantID, Foreign Key) - Promotion Name - Description - Discount Percentage - Start Date - End Date - Notes</s>
|
<s>[INST] give me a database schema for a Music Streaming and Recommendation System [/INST]1. **Users:** - UserID (Primary Key) - Username - Password - Email - First Name - Last Name - Birthdate - Gender - Subscription Type (e.g., Free, Premium) - Subscription Expiry Date - Notes2. **Artists:** - ArtistID (Primary Key) - Artist Name - Genre - Description - Notes3. **Albums (for organizing songs):** - AlbumID (Primary Key) - Album Name - Artist (ArtistID, Foreign Key) - Release Date - Genre - Description - Notes4. **Songs:** - SongID (Primary Key) - Song Title - Artist (ArtistID, Foreign Key) - Album (AlbumID, Foreign Key) - Genre - Release Date - Duration - Notes5. **Playlists (created by users):** - PlaylistID (Primary Key) - User (UserID, Foreign Key) - Playlist Name - Description - Creation Date - Notes6. **Playlist Songs (for associating songs with playlists):** - PlaylistSongID (Primary Key) - Playlist (PlaylistID, Foreign Key) - Song (SongID, Foreign Key) - Order in Playlist - Notes7. **Listening History (for tracking user song history):** - HistoryID (Primary Key) - User (UserID, Foreign Key) - Song (SongID, Foreign Key) - Listen Date and Time - Notes8. **Favorites (for users' favorite songs):** - FavoriteID (Primary Key) - User (UserID, Foreign Key) - Song (SongID, Foreign Key) - Notes9. **User Reviews and Ratings (for rating and reviewing songs):** - ReviewID (Primary Key) - User (UserID, Foreign Key) - Song (SongID, Foreign Key) - Rating (e.g., 1-5 stars) - Review Text - Review Date and Time - Notes10. **Recommendations (for suggesting songs to users):** - RecommendationID (Primary Key) - User (UserID, Foreign Key) - Song (SongID, Foreign Key) - Recommendation Date and Time - Notes11. **Search History (for storing user search queries):** - SearchID (Primary Key) - User (UserID, Foreign Key) - Search Query - Search Date and Time - Notes12. **User Settings (for managing user preferences):** - SettingsID (Primary Key) - User (UserID, Foreign Key) - Notification Preferences - Theme Preferences - Language Preferences - Notes13. **User Devices (for tracking logged-in devices):** - DeviceID (Primary Key) - User (UserID, Foreign Key) - Device Name - Device Type (e.g., Desktop, Mobile) - Last Login Date and Time - Notes14. **Advertisements (for displaying ads to users):** - AdID (Primary Key) - Ad Title - Ad Content - Ad Type (e.g., Banner, Video) - Ad Target (e.g., User Segment) - Advertiser - Notes15. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Play Song, Create Playlist) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Public Transportation Management System [/INST]1. **Routes:** - RouteID (Primary Key) - Route Name - Route Number - Description - Notes2. **Stops (for defining bus/train stops):** - StopID (Primary Key) - Stop Name - Location (Latitude, Longitude) - Address - Description - Notes3. **Vehicles (for buses/trains):** - VehicleID (Primary Key) - Vehicle Number - Vehicle Type (e.g., Bus, Train) - Manufacturer - Model - Capacity - Notes4. **Trips (for scheduled trips on routes):** - TripID (Primary Key) - Route (RouteID, Foreign Key) - Vehicle (VehicleID, Foreign Key) - Departure Time - Arrival Time - Trip Date - Notes5. **Passengers (for tracking passenger information):** - PassengerID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Notes6. **Tickets (for ticketing information):** - TicketID (Primary Key) - Passenger (PassengerID, Foreign Key) - Trip (TripID, Foreign Key) - Ticket Type (e.g., Single Ride, Monthly Pass) - Price - Purchase Date and Time - Expiration Date - Notes7. **Ticket Scans (for tracking ticket validations):** - ScanID (Primary Key) - Ticket (TicketID, Foreign Key) - Trip (TripID, Foreign Key) - Scan Date and Time - Scan Location (StopID, Foreign Key) - Notes8. **Employees (for managing transportation staff):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Role (e.g., Driver, Ticket Inspector) - Notes9. **Shifts (for scheduling employee shifts):** - ShiftID (Primary Key) - Employee (EmployeeID, Foreign Key) - Shift Date - Start Time - End Time - Notes10. **Complaints and Feedback (for passenger feedback):** - FeedbackID (Primary Key) - Passenger (PassengerID, Foreign Key) - Trip (TripID, Foreign Key) - Feedback Type (e.g., Complaint, Suggestion) - Feedback Text - Feedback Date and Time - Notes11. **Maintenance Requests (for vehicle maintenance):** - RequestID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Description - Request Date and Time - Status (e.g., Pending, Completed) - Notes12. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (EmployeeID, Foreign Key) - Action (e.g., Create Trip, Validate Ticket) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Student Attendance and Gradebook System [/INST]1. **Students:** - StudentID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Parent/Guardian Name - Parent/Guardian Contact Number - Notes2. **Courses:** - CourseID (Primary Key) - Course Name - Instructor Name - Description - Notes3. **Enrollments (for student-course associations):** - EnrollmentID (Primary Key) - Student (StudentID, Foreign Key) - Course (CourseID, Foreign Key) - Enrollment Date - Notes4. **Attendance (for tracking student attendance):** - AttendanceID (Primary Key) - Student (StudentID, Foreign Key) - Course (CourseID, Foreign Key) - Date - Attendance Status (e.g., Present, Absent, Tardy) - Notes5. **Assignments (for course assignments and grades):** - AssignmentID (Primary Key) - Course (CourseID, Foreign Key) - Assignment Name - Description - Due Date - Max Score - Notes6. **Grades (for recording student grades on assignments):** - GradeID (Primary Key) - Student (StudentID, Foreign Key) - Assignment (AssignmentID, Foreign Key) - Score - Notes7. **Exams (for tracking course exams and grades):** - ExamID (Primary Key) - Course (CourseID, Foreign Key) - Exam Name - Description - Exam Date - Max Score - Notes8. **Exam Scores (for recording student scores on exams):** - ExamScoreID (Primary Key) - Student (StudentID, Foreign Key) - Exam (ExamID, Foreign Key) - Score - Notes9. **Semesters (for organizing courses by semester):** - SemesterID (Primary Key) - Semester Name - Start Date - End Date - Notes10. **Transcripts (for storing student academic records):** - TranscriptID (Primary Key) - Student (StudentID, Foreign Key) - Course (CourseID, Foreign Key) - Semester (SemesterID, Foreign Key) - Final Grade - Notes11. **User Accounts (for instructors and administrators):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Instructor, Administrator) - Notes12. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Attendance, Update Grade) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Legal Document Management System [/INST]1. **Clients:** - ClientID (Primary Key) - First Name - Last Name - Company Name (if applicable) - Contact Number - Email - Address - Notes2. **Cases (for managing legal cases):** - CaseID (Primary Key) - Case Name - Case Number - Client (ClientID, Foreign Key) - Case Type (e.g., Civil, Criminal) - Case Status (e.g., Open, Closed) - Case Description - Notes3. **Documents (for storing legal documents):** - DocumentID (Primary Key) - Document Title - Document Type (e.g., Contract, Court Filing) - Case (CaseID, Foreign Key) - Author (EmployeeID, Foreign Key) - Creation Date - Last Modified Date - File Path (or Link) - Notes4. **Employees (for managing legal staff):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Position (e.g., Attorney, Paralegal) - Notes5. **Tasks (for tracking tasks related to cases):** - TaskID (Primary Key) - Task Name - Case (CaseID, Foreign Key) - Assigned To (EmployeeID, Foreign Key) - Due Date - Task Description - Task Status (e.g., To Do, In Progress, Completed) - Notes6. **Calendar Events (for scheduling legal events):** - EventID (Primary Key) - Event Title - Case (CaseID, Foreign Key) - Date and Time - Location - Event Description - Notes7. **Notes and Comments (for recording case-related notes):** - NoteID (Primary Key) - Case (CaseID, Foreign Key) - Employee (EmployeeID, Foreign Key) - Note Text - Note Date and Time - Notes8. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Attorney, Administrator) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Document, Update Case) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Hotel Room Reservation and Management System [/INST]1. **Guests:** - GuestID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID or Passport Number - Notes2. **Rooms:** - RoomID (Primary Key) - Room Number - Room Type (e.g., Single, Double, Suite) - Room Rate (per night) - Room Description - Notes3. **Reservations (for guest reservations):** - ReservationID (Primary Key) - Guest (GuestID, Foreign Key) - Room (RoomID, Foreign Key) - Check-In Date - Check-Out Date - Total Cost - Reservation Status (e.g., Confirmed, Checked-In, Checked-Out) - Notes4. **Check-Ins (for tracking guest check-ins):** - CheckInID (Primary Key) - Reservation (ReservationID, Foreign Key) - Check-In Date and Time - Check-In Agent (EmployeeID, Foreign Key) - Notes5. **Check-Outs (for tracking guest check-outs):** - CheckOutID (Primary Key) - Reservation (ReservationID, Foreign Key) - Check-Out Date and Time - Total Bill Amount - Check-Out Agent (EmployeeID, Foreign Key) - Notes6. **Employees (for managing hotel staff):** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Position (e.g., Front Desk Clerk, Manager) - Notes7. **Room Service Orders (for guest orders):** - OrderID (Primary Key) - Guest (GuestID, Foreign Key) - Order Date and Time - Order Details - Total Amount - Notes8. **Room Service Menu (for available items):** - MenuItemID (Primary Key) - Item Name - Description - Price - Notes9. **Room Maintenance Requests (for maintenance needs):** - MaintenanceRequestID (Primary Key) - Room (RoomID, Foreign Key) - Description - Request Date and Time - Status (e.g., Pending, Completed) - Notes10. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Front Desk Staff, Manager) - Notes11. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Reservation, Check-Out) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Donation and Fundraising Management System [/INST]1. **Donors:** - DonorID (Primary Key) - First Name - Last Name - Organization Name (if applicable) - Contact Number - Email - Address - Notes2. **Donations (for tracking individual donations):** - DonationID (Primary Key) - Donor (DonorID, Foreign Key) - Donation Date and Time - Donation Amount - Donation Method (e.g., Cash, Credit Card, Check) - Donation Campaign (if applicable) - Notes3. **Fundraising Campaigns (for managing fundraising efforts):** - CampaignID (Primary Key) - Campaign Name - Campaign Description - Start Date - End Date - Campaign Goal Amount - Notes4. **Fundraising Goals (for tracking campaign goals):** - GoalID (Primary Key) - Campaign (CampaignID, Foreign Key) - Goal Amount - Notes5. **Fundraising Activities (for recording fundraising events):** - ActivityID (Primary Key) - Campaign (CampaignID, Foreign Key) - Activity Name - Activity Date and Time - Location - Activity Description - Notes6. **Fundraising Participants (for managing participants in activities):** - ParticipantID (Primary Key) - Activity (ActivityID, Foreign Key) - First Name - Last Name - Contact Number - Email - Notes7. **Expenditures (for tracking campaign expenses):** - ExpenditureID (Primary Key) - Campaign (CampaignID, Foreign Key) - Expense Description - Expense Date and Time - Expense Amount - Notes8. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Fundraising Coordinator) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Donation, Create Campaign) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Fleet Maintenance and Tracking System [/INST]1. **Vehicles:** - VehicleID (Primary Key) - License Plate Number - Make - Model - Year - Vehicle Type (e.g., Car, Truck, Van) - Current Mileage - Fuel Type - Notes2. **Maintenance Records (for tracking vehicle maintenance):** - MaintenanceRecordID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Maintenance Date - Maintenance Type (e.g., Oil Change, Tire Rotation) - Maintenance Description - Cost - Notes3. **Fuel Logs (for recording fuel transactions):** - FuelLogID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Fill-Up Date and Time - Fuel Type (e.g., Regular, Premium) - Gallons/Liters Filled - Total Cost - Odometer Reading - Notes4. **Drivers (for managing drivers of the fleet):** - DriverID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - License Number - Notes5. **Trip Logs (for recording trips and routes):** - TripLogID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Driver (DriverID, Foreign Key) - Trip Date and Time - Starting Location - Ending Location - Distance Traveled (in miles/kilometers) - Notes6. **Incident Reports (for reporting accidents or incidents):** - IncidentReportID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Incident Date and Time - Description of Incident - Driver (DriverID, Foreign Key) - Reported By (EmployeeID, Foreign Key) - Notes7. **Parts Inventory (for managing vehicle parts):** - PartID (Primary Key) - Part Name - Part Description - Part Number - Quantity on Hand - Reorder Point - Supplier Name - Supplier Contact Number - Notes8. **Work Orders (for scheduling and tracking vehicle repairs):** - WorkOrderID (Primary Key) - Vehicle (VehicleID, Foreign Key) - Maintenance Date and Time - Mechanic (EmployeeID, Foreign Key) - Description of Work - Parts Used (List of PartIDs) - Total Cost - Notes9. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Fleet Manager, Mechanic) - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Maintenance Record, Update Fuel Log) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Water Quality Monitoring System [/INST]1. **Monitoring Stations:** - StationID (Primary Key) - Station Name - Location (Latitude and Longitude) - Description - Notes2. **Parameters (for monitoring parameters like pH, temperature, etc.):** - ParameterID (Primary Key) - Parameter Name - Unit of Measurement (e.g., pH units, Celsius) - Measurement Range - Notes3. **Water Quality Readings (for recording measurements):** - ReadingID (Primary Key) - Station (StationID, Foreign Key) - Parameter (ParameterID, Foreign Key) - Reading Date and Time - Measurement Value - Notes4. **Quality Standards (for setting acceptable ranges):** - StandardID (Primary Key) - Parameter (ParameterID, Foreign Key) - Min Acceptable Value - Max Acceptable Value - Notes5. **Reports (for generating water quality reports):** - ReportID (Primary Key) - Station (StationID, Foreign Key) - Start Date - End Date - Report Generation Date and Time - Report File (Attachment) - Notes6. **Users (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Data Analyst) - Notes7. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Reading, Generate Report) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Laboratory Information Management System (LIMS) [/INST]1. **Samples:** - SampleID (Primary Key) - Sample Name - Sample Type (e.g., Blood, Soil, Water) - Collection Date and Time - Collection Location - Description - Notes2. **Test Requests (for recording test requests for samples):** - RequestID (Primary Key) - Sample (SampleID, Foreign Key) - Requesting User (UserID, Foreign Key) - Request Date and Time - Priority (e.g., Routine, Urgent) - Notes3. **Tests (for defining available tests and procedures):** - TestID (Primary Key) - Test Name - Test Description - Test Type (e.g., Chemical Analysis, Microbiology) - Test Cost - Notes4. **Test Results (for recording test results for samples):** - ResultID (Primary Key) - Test (TestID, Foreign Key) - Sample (SampleID, Foreign Key) - Analysis Date and Time - Analyst (EmployeeID, Foreign Key) - Test Result Value - Result Units - Result Interpretation - Notes5. **Clients (for managing information about clients or organizations):** - ClientID (Primary Key) - Client Name - Contact Person - Contact Email - Contact Phone Number - Billing Address - Notes6. **Invoices (for generating invoices for clients):** - InvoiceID (Primary Key) - Client (ClientID, Foreign Key) - Invoice Date and Time - Due Date - Total Amount - Payment Status (e.g., Unpaid, Paid) - Notes7. **Users (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Laboratory Technician, Administrator) - Notes8. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Test Result, Generate Invoice) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for an Event Ticketing and Registration System [/INST]1. **Events:** - EventID (Primary Key) - Event Name - Event Date and Time - Location - Description - Maximum Capacity - Organizer (UserID, Foreign Key) - Notes2. **Attendees:** - AttendeeID (Primary Key) - First Name - Last Name - Email - Contact Number - Address - Registration Date and Time - Notes3. **Event Registrations (for tracking attendee registrations):** - RegistrationID (Primary Key) - Event (EventID, Foreign Key) - Attendee (AttendeeID, Foreign Key) - Registration Date and Time - Ticket Type - Ticket Price - Payment Status (e.g., Paid, Pending) - QR Code (for e-tickets) - Notes4. **Tickets (for managing ticket types and availability):** - TicketID (Primary Key) - Event (EventID, Foreign Key) - Ticket Type - Available Quantity - Price - Notes5. **Payment Transactions (for recording payment details):** - TransactionID (Primary Key) - Registration (RegistrationID, Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Credit Card, PayPal) - Payment Status (e.g., Success, Failed) - Notes6. **Event Check-Ins (for tracking attendee check-ins):** - CheckInID (Primary Key) - Event (EventID, Foreign Key) - Attendee (AttendeeID, Foreign Key) - Check-In Date and Time - Notes7. **Organizers (for managing event organizers):** - OrganizerID (Primary Key) - Organizer Name - Organizer Description - Contact Email - Contact Phone Number - Notes8. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Event Organizer) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Event, Record Payment) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for an Employee Health and Wellness Program [/INST]1. **Employees:** - EmployeeID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - National ID - Date of Hire - DepartmentID (Foreign Key) - Notes2. **Departments:** - DepartmentID (Primary Key) - Department Name - ManagerID (Foreign Key) - Notes3. **Health Assessments (for tracking employee health assessments):** - AssessmentID (Primary Key) - Employee (EmployeeID, Foreign Key) - Assessment Date and Time - Assessment Type (e.g., Physical, Mental) - Assessment Result - Assessment Notes4. **Wellness Activities (for managing wellness programs and activities):** - ActivityID (Primary Key) - Activity Name - Activity Description - Start Date - End Date - Location - Notes5. **Employee Participation (for tracking employee participation in wellness activities):** - ParticipationID (Primary Key) - Employee (EmployeeID, Foreign Key) - Activity (ActivityID, Foreign Key) - Participation Date and Time - Notes6. **Health Records (for storing health-related documents):** - RecordID (Primary Key) - Employee (EmployeeID, Foreign Key) - Document Name - Document Type (e.g., Medical Report, Vaccination Record) - Upload Date - Expiration Date - Notes7. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Wellness Coordinator) - Notes8. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Health Assessment, Create Wellness Activity) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Research Data Repository System [/INST]1. **Researchers:** - ResearcherID (Primary Key) - First Name - Last Name - Email - Contact Number - Affiliation - Research Area - Notes2. **Research Projects:** - ProjectID (Primary Key) - Project Name - Description - Start Date - End Date - Principal Investigator (ResearcherID, Foreign Key) - Funding Source - Notes3. **Research Data:** - DataID (Primary Key) - Project (ProjectID, Foreign Key) - Researcher (ResearcherID, Foreign Key) - Data Title - Data Description - Data Type (e.g., Experimental, Survey, Simulation) - Data Format (e.g., CSV, PDF, Dataset) - Upload Date - Access Level (e.g., Public, Private) - Notes4. **Data Categories (for organizing data into categories):** - CategoryID (Primary Key) - Category Name - Parent Category (CategoryID, Foreign Key for hierarchical categories) - Notes5. **Data Files (for storing data files associated with research data):** - FileID (Primary Key) - Data (DataID, Foreign Key) - File Name - File Type - File Size - Upload Date - Notes6. **Access Requests (for managing requests to access restricted data):** - RequestID (Primary Key) - Data (DataID, Foreign Key) - Requester (ResearcherID, Foreign Key) - Request Date and Time - Request Status (e.g., Pending, Approved, Denied) - Notes7. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Researcher) - Notes8. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Upload Data, Approve Access Request) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Waste Management and Recycling System [/INST]1. **Waste Collection Points:** - CollectionPointID (Primary Key) - Location Name - Address - Latitude - Longitude - Contact Person - Contact Number - Notes2. **Waste Bins:** - BinID (Primary Key) - Bin Number - CollectionPoint (CollectionPointID, Foreign Key) - Capacity (in liters or gallons) - Current Fill Level (in liters or gallons) - Last Emptied Date and Time - Notes3. **Waste Categories:** - CategoryID (Primary Key) - Category Name - Description - Notes4. **Waste Items:** - ItemID (Primary Key) - Item Name - Category (CategoryID, Foreign Key) - Description - Recycling Type (e.g., Recyclable, Non-recyclable) - Notes5. **Waste Collection Records:** - RecordID (Primary Key) - Bin (BinID, Foreign Key) - Collection Date and Time - Collector Name - Collected Volume (in liters or gallons) - Collected Weight (in pounds or kilograms) - Notes6. **Recycling Centers:** - RecyclingCenterID (Primary Key) - Center Name - Address - Contact Person - Contact Number - Notes7. **Recycled Materials:** - MaterialID (Primary Key) - Material Name - Description - Recycling Center (RecyclingCenterID, Foreign Key) - Notes8. **Recycling Transactions:** - TransactionID (Primary Key) - Material (MaterialID, Foreign Key) - Recycling Date and Time - Recycler Name - Weight (in pounds or kilograms) - Notes9. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Waste Collector) - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Collection Point, Record Collection) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for an Agricultural Crop Management System [/INST]1. **Farms:** - FarmID (Primary Key) - Farm Name - Location - Farm Owner - Contact Number - Total Area (in acres or hectares) - Notes2. **Crops:** - CropID (Primary Key) - Crop Name - Crop Type (e.g., Grains, Fruits, Vegetables) - Planting Season - Harvest Season - Farm (FarmID, Foreign Key) - Notes3. **Plots:** - PlotID (Primary Key) - Plot Number - Size (in square feet or square meters) - Crop (CropID, Foreign Key) - Soil Type - Irrigation Type - Notes4. **Planting Records:** - PlantingRecordID (Primary Key) - Plot (PlotID, Foreign Key) - Planting Date - Seed Supplier - Seed Quantity - Notes5. **Harvest Records:** - HarvestRecordID (Primary Key) - Crop (CropID, Foreign Key) - Plot (PlotID, Foreign Key) - Harvest Date - Quantity Harvested (in bushels, kilograms, or other units) - Notes6. **Pesticides:** - PesticideID (Primary Key) - Pesticide Name - Manufacturer - Usage Instructions - Notes7. **Pesticide Applications:** - ApplicationID (Primary Key) - Plot (PlotID, Foreign Key) - Pesticide (PesticideID, Foreign Key) - Application Date - Application Method - Quantity Used (in liters, kilograms, or other units) - Notes8. **Weather Data:** - WeatherDataID (Primary Key) - Farm (FarmID, Foreign Key) - Date - Temperature (in Celsius or Fahrenheit) - Rainfall (in millimeters or inches) - Wind Speed (in kilometers per hour or miles per hour) - Notes9. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Farmer) - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Harvest, Apply Pesticide) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for an Energy Efficiency and Conservation System [/INST]1. **Buildings:** - BuildingID (Primary Key) - Building Name - Location - Owner - Construction Date - Total Floor Area (in square feet or square meters) - Notes2. **Energy Meters:** - MeterID (Primary Key) - Meter Number - Building (BuildingID, Foreign Key) - Installation Date - Meter Type (e.g., Electricity, Gas, Water) - Notes3. **Energy Consumption Records:** - RecordID (Primary Key) - Meter (MeterID, Foreign Key) - Reading Date and Time - Consumption Value (in kilowatt-hours, cubic meters, or other units) - Notes4. **Energy Efficiency Measures:** - MeasureID (Primary Key) - Measure Name - Description - Estimated Savings (in monetary units) - Implementation Cost (in monetary units) - Payback Period (in months or years) - Notes5. **Building Retrofits:** - RetrofitID (Primary Key) - Building (BuildingID, Foreign Key) - Retrofit Date - Retrofit Type (e.g., Lighting Upgrade, HVAC System Optimization) - Cost (in monetary units) - Notes6. **Energy Audits:** - AuditID (Primary Key) - Building (BuildingID, Foreign Key) - Audit Date - Auditor Name - Audit Report (text or file attachment) - Notes7. **Energy Conservation Goals:** - GoalID (Primary Key) - Building (BuildingID, Foreign Key) - Goal Name - Target Reduction (in percentage) - Target Date - Notes8. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Energy Manager) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Energy Consumption, Create Retrofit) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Voting and Election Management System [/INST]1. **Elections:** - ElectionID (Primary Key) - Election Name - Election Type (e.g., Presidential, Parliamentary, Local) - Election Date - Location - Notes2. **Candidates:** - CandidateID (Primary Key) - Candidate Name - Party Affiliation - Election (ElectionID, Foreign Key) - Campaign Website (optional) - Notes3. **Voters:** - VoterID (Primary Key) - Voter Name - Voter ID Number - Address - Date of Birth - Voter Registration Date - Notes4. **Ballots:** - BallotID (Primary Key) - Election (ElectionID, Foreign Key) - Voter (VoterID, Foreign Key) - Voting Date and Time - Notes5. **Votes:** - VoteID (Primary Key) - Candidate (CandidateID, Foreign Key) - Ballot (BallotID, Foreign Key) - Notes6. **Election Officials:** - OfficialID (Primary Key) - Official Name - Position (e.g., Election Commissioner, Polling Officer) - Election (ElectionID, Foreign Key) - Contact Number - Notes7. **Polling Stations:** - StationID (Primary Key) - Station Name - Location - Election (ElectionID, Foreign Key) - Notes8. **Results:** - ResultID (Primary Key) - Election (ElectionID, Foreign Key) - Candidate (CandidateID, Foreign Key) - Votes Received - Percentage of Votes - Notes9. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Election Official) - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Record Vote, Create Election) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Social Media Analytics and Insights System [/INST]1. **Social Media Accounts:** - AccountID (Primary Key) - Account Name - Platform (e.g., Twitter, Facebook, Instagram) - Account URL - Follower Count - Account Creation Date - Notes2. **Posts:** - PostID (Primary Key) - Account (AccountID, Foreign Key) - Post Content - Post Date and Time - Likes Count - Comments Count - Shares Count - Notes3. **Hashtags:** - HashtagID (Primary Key) - Hashtag Text - Used In Posts (List of PostIDs) - Notes4. **Users (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Analyst) - Notes5. **Analytics Reports:** - ReportID (Primary Key) - Report Name - Date Generated - Account (AccountID, Foreign Key) - User (UserID, Foreign Key) - Report Content (text or file attachment) - Notes6. **Engagement Metrics:** - MetricID (Primary Key) - Post (PostID, Foreign Key) - Engagement Type (e.g., Like, Comment, Share) - User (UserID, Foreign Key) - Engagement Date and Time - Notes7. **Sentiment Analysis:** - SentimentID (Primary Key) - Post (PostID, Foreign Key) - Sentiment Score - Sentiment Category (e.g., Positive, Negative, Neutral) - Analysis Date and Time - Notes8. **Keyword Tracking:** - KeywordID (Primary Key) - Keyword Text - Tracked In Posts (List of PostIDs) - Notes9. **User Interactions:** - InteractionID (Primary Key) - User (UserID, Foreign Key) - Post (PostID, Foreign Key) - Interaction Type (e.g., Follow, Mention, Retweet) - Interaction Date and Time - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Generate Report, Create Account) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Patient Appointment Scheduling System [/INST]1. **Patients:** - PatientID (Primary Key) - First Name - Last Name - Date of Birth - Gender - Contact Number - Email - Address - Medical History (text or file attachment) - Notes2. **Doctors:** - DoctorID (Primary Key) - First Name - Last Name - Specialization - Contact Number - Email - Notes3. **Appointments:** - AppointmentID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment Date and Time - Appointment Duration (in minutes) - Appointment Status (e.g., Scheduled, Completed, Canceled) - Notes4. **Medical Records:** - RecordID (Primary Key) - Patient (PatientID, Foreign Key) - Doctor (DoctorID, Foreign Key) - Appointment (AppointmentID, Foreign Key) - Diagnosis - Treatment Plan - Prescription (text or file attachment) - Notes5. **User Accounts (for system users):** - UserID (Primary Key) - Username - Password - First Name - Last Name - Role (e.g., Administrator, Receptionist) - Notes6. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Schedule Appointment, Update Medical Record) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Library Resource Booking System [/INST]1. **Users:** - UserID (Primary Key) - First Name - Last Name - Email - Contact Number - Address - User Type (e.g., Student, Faculty, Librarian) - Notes2. **Library Resources:** - ResourceID (Primary Key) - Resource Name - Description - Resource Type (e.g., Books, Laptops, Study Rooms) - Total Quantity - Available Quantity - Location - Notes3. **Bookings:** - BookingID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Booking Date and Time - Booking Start Date and Time - Booking End Date and Time - Status (e.g., Reserved, Checked Out, Overdue) - Notes4. **Overdue Fines:** - FineID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Fine Amount - Due Date - Payment Status (e.g., Paid, Outstanding) - Notes5. **Reservations:** - ReservationID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Reservation Date and Time - Reservation Start Date and Time - Reservation End Date and Time - Status (e.g., Pending, Confirmed, Canceled) - Notes6. **User Requests:** - RequestID (Primary Key) - User (UserID, Foreign Key) - Request Type (e.g., Purchase Request, Reservation Extension) - Request Date and Time - Request Description - Status (e.g., Open, In Progress, Closed) - Notes7. **User Notifications:** - NotificationID (Primary Key) - User (UserID, Foreign Key) - Notification Type (e.g., Reminder, Overdue Notice) - Notification Date and Time - Notification Content - Notes8. **User History:** - HistoryID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Action (e.g., Booking, Return, Payment) - Action Date and Time - Notes9. **User Penalties:** - PenaltyID (Primary Key) - User (UserID, Foreign Key) - Penalty Type (e.g., Suspension, Fine) - Penalty Date and Time - Penalty Reason - Notes10. **User Ratings and Reviews:** - ReviewID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Rating (e.g., 1-5 stars) - Review Text - Review Date and Time - Notes11. **User Interactions:** - InteractionID (Primary Key) - User (UserID, Foreign Key) - Resource (ResourceID, Foreign Key) - Interaction Type (e.g., Check Out, Check In, Cancel Booking) - Interaction Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Building Access Control System [/INST]1. **Users:** - UserID (Primary Key) - First Name - Last Name - Email - Contact Number - Employee/Student ID - Access Level (e.g., Admin, Staff, Visitor) - Notes2. **Access Cards:** - CardID (Primary Key) - Card Number - User (UserID, Foreign Key) - Activation Date and Time - Expiration Date and Time - Status (e.g., Active, Expired, Revoked) - Notes3. **Access Doors:** - DoorID (Primary Key) - Door Name - Location - Access Level Required - Notes4. **Access Logs:** - LogID (Primary Key) - User (UserID, Foreign Key) - Card (CardID, Foreign Key) - Door (DoorID, Foreign Key) - Access Date and Time - Access Status (e.g., Granted, Denied) - Notes5. **Security Zones:** - ZoneID (Primary Key) - Zone Name - Access Doors (List of DoorIDs) - Access Level Required - Notes6. **Access Rules:** - RuleID (Primary Key) - User (UserID, Foreign Key) - Door (DoorID, Foreign Key) - Zone (ZoneID, Foreign Key) - Access Level Required - Start Time - End Time - Days of Week (e.g., Monday, Tuesday) - Status (e.g., Active, Inactive) - Notes7. **Alerts and Notifications:** - AlertID (Primary Key) - User (UserID, Foreign Key) - Alert Type (e.g., Unauthorized Access, Access Denied) - Alert Date and Time - Alert Details - Notes8. **Access Requests:** - RequestID (Primary Key) - User (UserID, Foreign Key) - Request Date and Time - Door (DoorID, Foreign Key) - Reason for Access - Request Status (e.g., Pending, Approved, Denied) - Notes9. **User Permissions:** - PermissionID (Primary Key) - User (UserID, Foreign Key) - Door (DoorID, Foreign Key) - Permission Level (e.g., Read-Only, Full Access) - Notes10. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Grant Access, Revoke Access) - Action Date and Time - Notes</s>
|
<s>[INST] give me a database schema for a Property Tax Assessment System [/INST]1. **Property Owners:** - OwnerID (Primary Key) - First Name - Last Name - Contact Number - Email - Address - Property Ownership Type (e.g., Individual, Corporation) - Notes2. **Properties:** - PropertyID (Primary Key) - Owner (OwnerID, Foreign Key) - Property Type (e.g., Residential, Commercial) - Property Address - Property Size (in square feet/meters) - Property Value - Year Built - Notes3. **Tax Assessments:** - AssessmentID (Primary Key) - Property (PropertyID, Foreign Key) - Assessment Year - Taxable Value - Tax Rate - Total Tax Amount - Due Date - Payment Status (e.g., Paid, Unpaid) - Notes4. **Tax Payments:** - PaymentID (Primary Key) - Property (PropertyID, Foreign Key) - Payment Date and Time - Payment Amount - Payment Method (e.g., Credit Card, Check) - Notes5. **Tax Exemptions:** - ExemptionID (Primary Key) - Property (PropertyID, Foreign Key) - Exemption Type (e.g., Senior Citizen, Disabled Veteran) - Exemption Amount - Exemption Start Date - Exemption End Date - Notes6. **Tax Appeals:** - AppealID (Primary Key) - Property (PropertyID, Foreign Key) - Appeal Date and Time - Appeal Reason - Appeal Status (e.g., Pending, Approved, Denied) - Notes7. **Tax Authorities:** - AuthorityID (Primary Key) - Authority Name - Contact Number - Email - Address - Notes8. **Tax Categories:** - CategoryID (Primary Key) - Category Name (e.g., Property Tax, School Tax) - Notes9. **Audit Trails (for system activity tracking):** - AuditID (Primary Key) - User (UserID, Foreign Key) - Action (e.g., Create Assessment, Make Payment) - Action Date and Time - Notes</s>
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 2