-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraft.yaml
More file actions
44 lines (36 loc) · 808 Bytes
/
draft.yaml
File metadata and controls
44 lines (36 loc) · 808 Bytes
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
models:
Category:
name: string:100
slug: string:120
icon: string:255
relationships:
hasMany: Product
Product:
category_id: id foreign
name: string:255
slug: string:255
price: integer
photo: string:255
about: text
relationships:
hasMany: ProductTransaction, Cart, TransactionDetail
ProductTransaction:
user_id: id foreign
total_amount: integer
is_paid: boolean
address: text
city: string:100
post_code: string:100
phone_number: string:16
notes: text
proof: text
relationships:
hasMany: TransactionDetail
TransactionDetail:
Production_transaction_id: id foreign
product_id: id foreign
price: integer
Cart:
user_id: id foreign
product_id: id foreign
qty: integer