|
| 1 | +created: |
| 2 | + - database/factories/CustomerFactory.php |
| 3 | + - database/factories/SupplierFactory.php |
| 4 | + - database/factories/CategoryFactory.php |
| 5 | + - database/factories/SubCategoryFactory.php |
| 6 | + - database/factories/ProductFactory.php |
| 7 | + - database/factories/PaymentTypeFactory.php |
| 8 | + - database/factories/PurchaseOrderFactory.php |
| 9 | + - database/factories/PurchaseOrderItemFactory.php |
| 10 | + - database/factories/SaleFactory.php |
| 11 | + - database/factories/SaleItemFactory.php |
| 12 | + - database/factories/SettingFactory.php |
| 13 | + - database/migrations/2024_06_03_165224_create_customers_table.php |
| 14 | + - database/migrations/2024_06_03_165225_create_suppliers_table.php |
| 15 | + - database/migrations/2024_06_03_165226_create_categories_table.php |
| 16 | + - database/migrations/2024_06_03_165227_create_sub_categories_table.php |
| 17 | + - database/migrations/2024_06_03_165228_create_products_table.php |
| 18 | + - database/migrations/2024_06_03_165229_create_payment_types_table.php |
| 19 | + - database/migrations/2024_06_03_165230_create_purchase_orders_table.php |
| 20 | + - database/migrations/2024_06_03_165231_create_purchase_order_items_table.php |
| 21 | + - database/migrations/2024_06_03_165232_create_sales_table.php |
| 22 | + - database/migrations/2024_06_03_165233_create_sale_items_table.php |
| 23 | + - database/migrations/2024_06_03_165234_create_settings_table.php |
| 24 | + - app/Models/Customer.php |
| 25 | + - app/Models/Supplier.php |
| 26 | + - app/Models/Category.php |
| 27 | + - app/Models/SubCategory.php |
| 28 | + - app/Models/Product.php |
| 29 | + - app/Models/PaymentType.php |
| 30 | + - app/Models/PurchaseOrder.php |
| 31 | + - app/Models/PurchaseOrderItem.php |
| 32 | + - app/Models/Sale.php |
| 33 | + - app/Models/SaleItem.php |
| 34 | + - app/Models/Setting.php |
| 35 | +models: |
| 36 | + Customer: { name: string, email: 'string nullable', phone: 'string nullable', address: text, status: 'enum:active,inactive', gender: 'enum:male,female' } |
| 37 | + Supplier: { company_name: string, contact_person: string, email: 'string nullable', phone: 'string nullable', status: 'enum:active,inactive' } |
| 38 | + Category: { name: string, description: 'text nullable', status: 'enum:active,inactive', relationships: { hasMany: SubCategory } } |
| 39 | + SubCategory: { name: string, description: 'text nullable', status: 'enum:active,inactive', relationships: { belongsTo: Category } } |
| 40 | + Product: { sku: 'string unique', name: string, purchase_price: decimal, selling_price: decimal, description: 'text nullable', status: 'enum:active,inactive' } |
| 41 | + PaymentType: { name: string, description: 'text nullable' } |
| 42 | + PurchaseOrder: { purchase_code: 'string unique', order_date: date, expected_delivery_date: 'date nullable', status: 'enum:pending,received,partially received,cancelled', total_amount: decimal, paid_amount: decimal, relationships: { belongsTo: 'Supplier, PaymentType', hasMany: PurchaseOrderItem } } |
| 43 | + PurchaseOrderItem: { sku: string, name: string, quantity: integer, unit_cost: decimal, relationships: { belongsTo: 'PurchaseOrder, Product' } } |
| 44 | + Sale: { invoice_number: string, sale_date: date, vat: double, total_amount: decimal, paid_amount: decimal, relationships: { belongsTo: 'Customer, PaymentType', hasMany: SaleItem } } |
| 45 | + SaleItem: { sku: string, name: string, quantity: integer, unit_cost: decimal, relationships: { belongsTo: 'Sale, Product' } } |
| 46 | + Setting: { company_name: string, phone: string, email: string, address: text, currency: string } |
0 commit comments