-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft.yaml
84 lines (75 loc) · 1.73 KB
/
draft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
models:
Customer:
name: string
email: string nullable
phone: string nullable
address: text
status: enum:active,inactive
gender: enum:male,female
relationships:
hasMany: Sale
belongsTo: User
Supplier:
company_name: string
contact_person: string
email: string nullable
phone: string nullable
status: enum:active,inactive
relationships:
belongsTo: User
Category:
name: string
description: text nullable
status: enum:active,inactive
relationships:
hasMany: Category
belongsTo: Category
Product:
sku: string unique
name: string
purchase_price: decimal
selling_price: decimal
description: text nullable
status: enum:active,inactive
PaymentType:
name: string
description: text nullable
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, User
hasMany: PurchaseOrderItem
PurchaseOrderItem:
sku: string
name: string
quantity: integer
unit_cost: decimal
relationships:
belongsTo: PurchaseOrder, Product
Sale:
invoice_number: string
sale_date: date
vat: double
total_amount: decimal
paid_amount: decimal
relationships:
belongsTo: Customer, PaymentType, User
hasMany: SaleItem
SaleItem:
sku: string
name: string
quantity: integer
unit_cost: decimal
relationships:
belongsTo: Sale, Product
Setting:
company_name: string
phone: string
email: string
address: text
currency: string