-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdraft.yaml
118 lines (103 loc) · 2.85 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
models:
Seller:
name: string
hideProducts: boolean default:false
relationships:
belongsToMany: User
hasOne: SellerData, Partnership
hasMany: SellerProduct, SellerVariant, Price, Stock, Location, Message
Partnership:
seller_id: id foreign
status: enum:submitted,accepted,rejected,review default:submitted
rejection_reason: text nullable
notes: text nullable
select_all_products: boolean default:false
SellerData:
seller_id: id foreign
email: string nullable
description: text nullable
company_name: string nullable
address_line1: string nullable
address_line2: string nullable
city: string nullable
state: string nullable
postal_code: string nullable
country_code: string nullable
phone: string nullable
vat: string nullable
tin: string nullable
eori: string nullable
iban: string nullable
swift_bic: string nullable
bank_name: string nullable
account_holder_name: string nullable
file1: string nullable
file2: string nullable
file3: string nullable
Category:
name: string
description: text nullable
is_active: boolean nullable
parent_id: id foreign:categories.id nullable
relationships:
hasMany: SellerProduct
SellerProduct:
name: string
brand: string nullable
sku: string nullable
description: text nullable
attributes: json nullable
category_id: id foreign nullable
seller_id: id foreign
status: enum:draft,active,delisted default:draft
selected: boolean default:false
relationships:
hasMany: SellerVariant,Price,Stock,SellerProductImage:image
SellerProductImage:
seller_product_id: id foreign
seller_variant_id: id foreign nullable
image: string
number: integer default:1
SellerVariant:
name: string
sku: string nullable
description: text nullable
attributes: json nullable
seller_product_id: id foreign
seller_id: id foreign
status: enum:draft,active,delisted default:draft
relationships:
hasMany: Price, Stock, SellerProductImage:image
Price:
amount: integer
seller_variant_id: id foreign nullable
seller_product_id: id foreign
currency_id: id foreign
Stock:
quantity: integer
reserved: integer nullable
safety_stock: integer nullable
seller_variant_id: id foreign
seller_product_id: id foreign
location_id: id foreign
seller_id: id foreign
Location:
name: string
address: string
default_delivery_days: integer nullable
seller_id: id foreign
relationships:
hasMany: Stock
Currency:
code: string
symbol: string
name: string nullable
is_default: boolean default:false
relationships:
hasMany: Price
Message:
content: text
seller_id: id foreign
message_id: id foreign nullable
controllers:
# ...