fivetech commited on
Commit
5b14a8e
路
verified 路
1 Parent(s): ad78afe

Create demo.json

Browse files
Files changed (1) hide show
  1. data/seed/demo.json +238 -0
data/seed/demo.json ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "meta": {
3
+ "name": "FiveTech - demo ficticia",
4
+ "as_of": "2030-07-15T10:00:00Z",
5
+ "currency": "USD",
6
+ "fictional": true
7
+ },
8
+ "suppliers": [
9
+ {
10
+ "id": "PROV-01",
11
+ "name": "Textiles Sierra S.L.",
12
+ "country": "Espa帽a",
13
+ "contact_email": null,
14
+ "lead_days": 4,
15
+ "active": 1
16
+ },
17
+ {
18
+ "id": "PROV-02",
19
+ "name": "Componentes Delta Lda.",
20
+ "country": "Portugal",
21
+ "contact_email": null,
22
+ "lead_days": 7,
23
+ "active": 1
24
+ }
25
+ ],
26
+ "products": [
27
+ {
28
+ "sku": "SKU-451",
29
+ "name": "Tejido t茅cnico azul, rollo",
30
+ "category": "Materia prima",
31
+ "unit": "rollo",
32
+ "sale_price_cents": 6800,
33
+ "reorder_point": 20,
34
+ "target_stock": 80,
35
+ "active": 1
36
+ },
37
+ {
38
+ "sku": "SKU-208",
39
+ "name": "Cierre industrial, caja",
40
+ "category": "Componente",
41
+ "unit": "caja",
42
+ "sale_price_cents": 4500,
43
+ "reorder_point": 15,
44
+ "target_stock": 50,
45
+ "active": 1
46
+ },
47
+ {
48
+ "sku": "SKU-713",
49
+ "name": "Forro reciclado, rollo",
50
+ "category": "Materia prima",
51
+ "unit": "rollo",
52
+ "sale_price_cents": 5800,
53
+ "reorder_point": 12,
54
+ "target_stock": 40,
55
+ "active": 1
56
+ }
57
+ ],
58
+ "supplier_products": [
59
+ {
60
+ "supplier_id": "PROV-01",
61
+ "sku": "SKU-451",
62
+ "unit_cost_cents": 3400,
63
+ "min_order_qty": 10
64
+ },
65
+ {
66
+ "supplier_id": "PROV-02",
67
+ "sku": "SKU-208",
68
+ "unit_cost_cents": 2500,
69
+ "min_order_qty": 5
70
+ },
71
+ {
72
+ "supplier_id": "PROV-01",
73
+ "sku": "SKU-713",
74
+ "unit_cost_cents": 3100,
75
+ "min_order_qty": 5
76
+ }
77
+ ],
78
+ "inventory": [
79
+ {
80
+ "sku": "SKU-451",
81
+ "on_hand": 18,
82
+ "reserved": 12,
83
+ "updated_at": "2030-07-15T09:00:00Z"
84
+ },
85
+ {
86
+ "sku": "SKU-208",
87
+ "on_hand": 36,
88
+ "reserved": 5,
89
+ "updated_at": "2030-07-15T09:00:00Z"
90
+ },
91
+ {
92
+ "sku": "SKU-713",
93
+ "on_hand": 26,
94
+ "reserved": 2,
95
+ "updated_at": "2030-07-15T09:00:00Z"
96
+ }
97
+ ],
98
+ "sales_orders": [
99
+ {
100
+ "id": "PED-1001",
101
+ "customer_name": "Distribuciones Norte S.L.",
102
+ "region": "Espa帽a",
103
+ "placed_at": "2030-07-14T11:15:00Z",
104
+ "status": "confirmado"
105
+ },
106
+ {
107
+ "id": "PED-1002",
108
+ "customer_name": "Grupo Andino S.A.",
109
+ "region": "LATAM",
110
+ "placed_at": "2030-07-15T08:20:00Z",
111
+ "status": "pendiente"
112
+ }
113
+ ],
114
+ "sales_order_lines": [
115
+ {
116
+ "order_id": "PED-1001",
117
+ "line_no": 1,
118
+ "sku": "SKU-451",
119
+ "quantity": 12,
120
+ "unit_price_cents": 6800
121
+ },
122
+ {
123
+ "order_id": "PED-1001",
124
+ "line_no": 2,
125
+ "sku": "SKU-208",
126
+ "quantity": 5,
127
+ "unit_price_cents": 4500
128
+ },
129
+ {
130
+ "order_id": "PED-1002",
131
+ "line_no": 1,
132
+ "sku": "SKU-451",
133
+ "quantity": 25,
134
+ "unit_price_cents": 6800
135
+ }
136
+ ],
137
+ "purchase_proposals": [
138
+ {
139
+ "id": "PROP-001",
140
+ "sku": "SKU-451",
141
+ "supplier_id": "PROV-01",
142
+ "proposed_qty": 80,
143
+ "unit_cost_cents": 3400,
144
+ "currency": "USD",
145
+ "agent_id": "ALPHA",
146
+ "rationale": "Disponible: 6 rollos; punto de reposici贸n: 20. El pedido PED-1002 solicita 25. Reposici贸n para evitar rotura de stock.",
147
+ "created_at": "2030-07-15T09:30:00Z"
148
+ }
149
+ ],
150
+ "approval_queue": [
151
+ {
152
+ "proposal_id": "PROP-001",
153
+ "status": "pendiente",
154
+ "decided_by": null,
155
+ "decided_at": null,
156
+ "decision_reason": null
157
+ }
158
+ ],
159
+ "stock_movements": [],
160
+ "audit_log": [
161
+ {
162
+ "id": "AUD-001",
163
+ "occurred_at": "2030-07-15T09:30:00Z",
164
+ "actor": "ALPHA",
165
+ "action": "propuesta_creada",
166
+ "entity_type": "purchase_proposal",
167
+ "entity_id": "PROP-001",
168
+ "details_json": "{\"sku\":\"SKU-451\",\"cantidad\":80}"
169
+ }
170
+ ],
171
+ "workforce": [
172
+ {
173
+ "id": "PER-01",
174
+ "name": "Elena Ruiz",
175
+ "role": "Planificaci贸n de producci贸n",
176
+ "team": "Producci贸n",
177
+ "capacity_hours": 40,
178
+ "assigned_hours": 28,
179
+ "status": "ocupado"
180
+ },
181
+ {
182
+ "id": "PER-02",
183
+ "name": "Marcos Vidal",
184
+ "role": "Operaciones comerciales",
185
+ "team": "Ventas",
186
+ "capacity_hours": 40,
187
+ "assigned_hours": 22,
188
+ "status": "disponible"
189
+ },
190
+ {
191
+ "id": "PER-03",
192
+ "name": "Luc铆a Moreno",
193
+ "role": "Control de calidad",
194
+ "team": "Producci贸n",
195
+ "capacity_hours": 40,
196
+ "assigned_hours": 32,
197
+ "status": "ocupado"
198
+ }
199
+ ],
200
+ "production_jobs": [
201
+ {
202
+ "id": "FAB-001",
203
+ "sku": "SKU-451",
204
+ "quantity": 12,
205
+ "stage": "preparaci贸n",
206
+ "due_at": "2030-07-18T10:00:00Z",
207
+ "owner": "Elena Ruiz",
208
+ "order_id": "PED-1001"
209
+ },
210
+ {
211
+ "id": "FAB-002",
212
+ "sku": "SKU-208",
213
+ "quantity": 5,
214
+ "stage": "control_calidad",
215
+ "due_at": "2030-07-19T10:00:00Z",
216
+ "owner": "Luc铆a Moreno",
217
+ "order_id": "PED-1001"
218
+ }
219
+ ],
220
+ "planning_tasks": [
221
+ {
222
+ "id": "PLAN-001",
223
+ "title": "Revisar reposici贸n SKU-451",
224
+ "due_at": "2030-07-17T09:00:00Z",
225
+ "team": "Suministro",
226
+ "status": "pendiente",
227
+ "linked_order_id": "PED-1002"
228
+ },
229
+ {
230
+ "id": "PLAN-002",
231
+ "title": "Preparar pedido PED-1001",
232
+ "due_at": "2030-07-18T10:00:00Z",
233
+ "team": "Producci贸n",
234
+ "status": "en_curso",
235
+ "linked_order_id": "PED-1001"
236
+ }
237
+ ]
238
+ }