-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraftMaster.yaml
More file actions
47 lines (43 loc) · 1.43 KB
/
draftMaster.yaml
File metadata and controls
47 lines (43 loc) · 1.43 KB
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
models:
ZxInventoryCategoryName:
name: json
description: json nullable
softDeletes
ZxInventoryCategory:
parent_id: foreignId foreign:zx_inventory_categories nullable
category_name_id: foreignId foreign:zx_inventory_category_names
description: json nullable
enabled: boolean default:1
icon_id: foreignId foreign:zx_icons nullable
indexes:
- unique: parent_id, category_name_id
relationships:
belongsToMany: ZxInventoryCategory
ZxIcon:
name: json
icon_url: string:128 unique
softDeletes
ZxInventoryItem:
brand_id: foreignId foreign:zx_icons nullable
parent_id: foreignId foreign:zx_inventory_items nullable
variant_or_part: boolean nullable
name: json
description: json nullable
model_no: string:64 nullable
barcode: string:64 unique nullable
photo_url: string:128 nullable
enabled: boolean default:1
softDeletes
relationships:
belongsToMany: ZxInventoryCategory, ZxInventoryItem
hasMany: ZxInventorySku
ZxInventorySku:
item_id: foreignId foreign:zx_inventory_items
parent_id: foreignId foreign:zx_inventory_skus nullable
batch_no: string:64 nullable
serial_no: string:128 unique nullable
photo_url: string:128 nullable
enabled: boolean default:1
softDeletes
relationships:
belongsToMany: ZxInventorySku