@aiao/rxdb-test 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ declare type OrderRule = UUIDRules<Order, 'id'>
11
11
  | StringRules<Order, 'updatedBy'>
12
12
  | StringRules<Order, 'number'>
13
13
  | NumberRules<Order, 'amount'>
14
+ | StringRules<Order, 'status'>
14
15
  | UUIDRules<Order, 'ownerId'>
15
16
  | RelationExistsRules<'owner', UserRuleGroup>
16
17
  | RelationUUIDRules<'owner.id', UUID>
@@ -49,12 +50,196 @@ declare type OrderRule = UUIDRules<Order, 'id'>
49
50
  | RelationNumberRules<'items.quantity', number>
50
51
  | RelationNumberRules<'items.price', number>
51
52
  | UUIDRules<OrderItem, 'orderId'>
53
+ | UUIDRules<OrderItem, 'skuId'>
54
+ | RelationUUIDRules<'items.sku.id', UUID>
55
+ | RelationDateRules<'items.sku.createdAt', Date>
56
+ | RelationDateRules<'items.sku.updatedAt', Date>
57
+ | RelationStringRules<'items.sku.createdBy', string | null>
58
+ | RelationStringRules<'items.sku.updatedBy', string | null>
59
+ | RelationStringRules<'items.sku.code', string>
60
+ | RelationNumberRules<'items.sku.price', number>
61
+ | RelationNumberRules<'items.sku.stock', number>
62
+ | UUIDRules<SKU, 'productId'>
63
+ | RelationUUIDRules<'items.sku.attributes.id', UUID>
64
+ | RelationDateRules<'items.sku.attributes.createdAt', Date>
65
+ | RelationDateRules<'items.sku.attributes.updatedAt', Date>
66
+ | RelationStringRules<'items.sku.attributes.createdBy', string | null>
67
+ | RelationStringRules<'items.sku.attributes.updatedBy', string | null>
68
+ | UUIDRules<SKUAttributes, 'skuId'>
69
+ | UUIDRules<SKUAttributes, 'attributeId'>
70
+ | UUIDRules<SKUAttributes, 'valueId'>
71
+ | RelationUUIDRules<'items.sku.attributes.attribute.id', UUID>
72
+ | RelationDateRules<'items.sku.attributes.attribute.createdAt', Date>
73
+ | RelationDateRules<'items.sku.attributes.attribute.updatedAt', Date>
74
+ | RelationStringRules<'items.sku.attributes.attribute.createdBy', string | null>
75
+ | RelationStringRules<'items.sku.attributes.attribute.updatedBy', string | null>
76
+ | RelationStringRules<'items.sku.attributes.attribute.name', string>
77
+ | RelationUUIDRules<'items.sku.attributes.attribute.values.id', UUID>
78
+ | RelationDateRules<'items.sku.attributes.attribute.values.createdAt', Date>
79
+ | RelationDateRules<'items.sku.attributes.attribute.values.updatedAt', Date>
80
+ | RelationStringRules<'items.sku.attributes.attribute.values.createdBy', string | null>
81
+ | RelationStringRules<'items.sku.attributes.attribute.values.updatedBy', string | null>
82
+ | RelationStringRules<'items.sku.attributes.attribute.values.name', string>
83
+ | UUIDRules<AttributeValue, 'attributeId'>
84
+ | RelationUUIDRules<'items.sku.attributes.attribute.values.skuAttributeValues.id', UUID>
85
+ | RelationDateRules<'items.sku.attributes.attribute.values.skuAttributeValues.createdAt', Date>
86
+ | RelationDateRules<'items.sku.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
87
+ | RelationStringRules<'items.sku.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
88
+ | RelationStringRules<'items.sku.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
89
+ | RelationUUIDRules<'items.sku.attributes.attribute.skuAttributes.id', UUID>
90
+ | RelationDateRules<'items.sku.attributes.attribute.skuAttributes.createdAt', Date>
91
+ | RelationDateRules<'items.sku.attributes.attribute.skuAttributes.updatedAt', Date>
92
+ | RelationStringRules<'items.sku.attributes.attribute.skuAttributes.createdBy', string | null>
93
+ | RelationStringRules<'items.sku.attributes.attribute.skuAttributes.updatedBy', string | null>
94
+ | RelationUUIDRules<'items.sku.attributes.value.id', UUID>
95
+ | RelationDateRules<'items.sku.attributes.value.createdAt', Date>
96
+ | RelationDateRules<'items.sku.attributes.value.updatedAt', Date>
97
+ | RelationStringRules<'items.sku.attributes.value.createdBy', string | null>
98
+ | RelationStringRules<'items.sku.attributes.value.updatedBy', string | null>
99
+ | RelationStringRules<'items.sku.attributes.value.name', string>
100
+ | RelationUUIDRules<'items.sku.attributes.value.attribute.id', UUID>
101
+ | RelationDateRules<'items.sku.attributes.value.attribute.createdAt', Date>
102
+ | RelationDateRules<'items.sku.attributes.value.attribute.updatedAt', Date>
103
+ | RelationStringRules<'items.sku.attributes.value.attribute.createdBy', string | null>
104
+ | RelationStringRules<'items.sku.attributes.value.attribute.updatedBy', string | null>
105
+ | RelationStringRules<'items.sku.attributes.value.attribute.name', string>
106
+ | RelationUUIDRules<'items.sku.attributes.value.attribute.values.id', UUID>
107
+ | RelationDateRules<'items.sku.attributes.value.attribute.values.createdAt', Date>
108
+ | RelationDateRules<'items.sku.attributes.value.attribute.values.updatedAt', Date>
109
+ | RelationStringRules<'items.sku.attributes.value.attribute.values.createdBy', string | null>
110
+ | RelationStringRules<'items.sku.attributes.value.attribute.values.updatedBy', string | null>
111
+ | RelationStringRules<'items.sku.attributes.value.attribute.values.name', string>
112
+ | RelationUUIDRules<'items.sku.attributes.value.attribute.skuAttributes.id', UUID>
113
+ | RelationDateRules<'items.sku.attributes.value.attribute.skuAttributes.createdAt', Date>
114
+ | RelationDateRules<'items.sku.attributes.value.attribute.skuAttributes.updatedAt', Date>
115
+ | RelationStringRules<'items.sku.attributes.value.attribute.skuAttributes.createdBy', string | null>
116
+ | RelationStringRules<'items.sku.attributes.value.attribute.skuAttributes.updatedBy', string | null>
117
+ | RelationUUIDRules<'items.sku.attributes.value.skuAttributeValues.id', UUID>
118
+ | RelationDateRules<'items.sku.attributes.value.skuAttributeValues.createdAt', Date>
119
+ | RelationDateRules<'items.sku.attributes.value.skuAttributeValues.updatedAt', Date>
120
+ | RelationStringRules<'items.sku.attributes.value.skuAttributeValues.createdBy', string | null>
121
+ | RelationStringRules<'items.sku.attributes.value.skuAttributeValues.updatedBy', string | null>
122
+ | RelationUUIDRules<'items.sku.orderItems.id', UUID>
123
+ | RelationDateRules<'items.sku.orderItems.createdAt', Date>
124
+ | RelationDateRules<'items.sku.orderItems.updatedAt', Date>
125
+ | RelationStringRules<'items.sku.orderItems.createdBy', string | null>
126
+ | RelationStringRules<'items.sku.orderItems.updatedBy', string | null>
127
+ | RelationStringRules<'items.sku.orderItems.productName', string>
128
+ | RelationNumberRules<'items.sku.orderItems.quantity', number>
129
+ | RelationNumberRules<'items.sku.orderItems.price', number>
130
+ | RelationUUIDRules<'items.sku.product.id', UUID>
131
+ | RelationDateRules<'items.sku.product.createdAt', Date>
132
+ | RelationDateRules<'items.sku.product.updatedAt', Date>
133
+ | RelationStringRules<'items.sku.product.createdBy', string | null>
134
+ | RelationStringRules<'items.sku.product.updatedBy', string | null>
135
+ | RelationStringRules<'items.sku.product.name', string>
136
+ | RelationStringRules<'items.sku.product.description', string | null>
137
+ | RelationUUIDRules<'items.sku.product.skus.id', UUID>
138
+ | RelationDateRules<'items.sku.product.skus.createdAt', Date>
139
+ | RelationDateRules<'items.sku.product.skus.updatedAt', Date>
140
+ | RelationStringRules<'items.sku.product.skus.createdBy', string | null>
141
+ | RelationStringRules<'items.sku.product.skus.updatedBy', string | null>
142
+ | RelationStringRules<'items.sku.product.skus.code', string>
143
+ | RelationNumberRules<'items.sku.product.skus.price', number>
144
+ | RelationNumberRules<'items.sku.product.skus.stock', number>
145
+ | RelationUUIDRules<'items.sku.product.categories.id', UUID>
146
+ | RelationDateRules<'items.sku.product.categories.createdAt', Date>
147
+ | RelationDateRules<'items.sku.product.categories.updatedAt', Date>
148
+ | RelationStringRules<'items.sku.product.categories.createdBy', string | null>
149
+ | RelationStringRules<'items.sku.product.categories.updatedBy', string | null>
150
+ | RelationStringRules<'items.sku.product.categories.name', string>
151
+ | RelationUUIDRules<'items.sku.product.categories.orderItems.id', UUID>
152
+ | RelationDateRules<'items.sku.product.categories.orderItems.createdAt', Date>
153
+ | RelationDateRules<'items.sku.product.categories.orderItems.updatedAt', Date>
154
+ | RelationStringRules<'items.sku.product.categories.orderItems.createdBy', string | null>
155
+ | RelationStringRules<'items.sku.product.categories.orderItems.updatedBy', string | null>
156
+ | RelationStringRules<'items.sku.product.categories.orderItems.productName', string>
157
+ | RelationNumberRules<'items.sku.product.categories.orderItems.quantity', number>
158
+ | RelationNumberRules<'items.sku.product.categories.orderItems.price', number>
52
159
  | RelationUUIDRules<'items.categories.id', UUID>
53
160
  | RelationDateRules<'items.categories.createdAt', Date>
54
161
  | RelationDateRules<'items.categories.updatedAt', Date>
55
162
  | RelationStringRules<'items.categories.createdBy', string | null>
56
163
  | RelationStringRules<'items.categories.updatedBy', string | null>
57
- | RelationStringRules<'items.categories.name', string>;
164
+ | RelationStringRules<'items.categories.name', string>
165
+ | RelationUUIDRules<'items.categories.products.id', UUID>
166
+ | RelationDateRules<'items.categories.products.createdAt', Date>
167
+ | RelationDateRules<'items.categories.products.updatedAt', Date>
168
+ | RelationStringRules<'items.categories.products.createdBy', string | null>
169
+ | RelationStringRules<'items.categories.products.updatedBy', string | null>
170
+ | RelationStringRules<'items.categories.products.name', string>
171
+ | RelationStringRules<'items.categories.products.description', string | null>
172
+ | RelationUUIDRules<'items.categories.products.skus.id', UUID>
173
+ | RelationDateRules<'items.categories.products.skus.createdAt', Date>
174
+ | RelationDateRules<'items.categories.products.skus.updatedAt', Date>
175
+ | RelationStringRules<'items.categories.products.skus.createdBy', string | null>
176
+ | RelationStringRules<'items.categories.products.skus.updatedBy', string | null>
177
+ | RelationStringRules<'items.categories.products.skus.code', string>
178
+ | RelationNumberRules<'items.categories.products.skus.price', number>
179
+ | RelationNumberRules<'items.categories.products.skus.stock', number>
180
+ | RelationUUIDRules<'items.categories.products.skus.attributes.id', UUID>
181
+ | RelationDateRules<'items.categories.products.skus.attributes.createdAt', Date>
182
+ | RelationDateRules<'items.categories.products.skus.attributes.updatedAt', Date>
183
+ | RelationStringRules<'items.categories.products.skus.attributes.createdBy', string | null>
184
+ | RelationStringRules<'items.categories.products.skus.attributes.updatedBy', string | null>
185
+ | RelationUUIDRules<'items.categories.products.skus.attributes.attribute.id', UUID>
186
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.createdAt', Date>
187
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.updatedAt', Date>
188
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.createdBy', string | null>
189
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.updatedBy', string | null>
190
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.name', string>
191
+ | RelationUUIDRules<'items.categories.products.skus.attributes.attribute.values.id', UUID>
192
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.values.createdAt', Date>
193
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.values.updatedAt', Date>
194
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.values.createdBy', string | null>
195
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.values.updatedBy', string | null>
196
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.values.name', string>
197
+ | RelationUUIDRules<'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id', UUID>
198
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
199
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
200
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
201
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
202
+ | RelationUUIDRules<'items.categories.products.skus.attributes.attribute.skuAttributes.id', UUID>
203
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.skuAttributes.createdAt', Date>
204
+ | RelationDateRules<'items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt', Date>
205
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.skuAttributes.createdBy', string | null>
206
+ | RelationStringRules<'items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy', string | null>
207
+ | RelationUUIDRules<'items.categories.products.skus.attributes.value.id', UUID>
208
+ | RelationDateRules<'items.categories.products.skus.attributes.value.createdAt', Date>
209
+ | RelationDateRules<'items.categories.products.skus.attributes.value.updatedAt', Date>
210
+ | RelationStringRules<'items.categories.products.skus.attributes.value.createdBy', string | null>
211
+ | RelationStringRules<'items.categories.products.skus.attributes.value.updatedBy', string | null>
212
+ | RelationStringRules<'items.categories.products.skus.attributes.value.name', string>
213
+ | RelationUUIDRules<'items.categories.products.skus.attributes.value.attribute.id', UUID>
214
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.createdAt', Date>
215
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.updatedAt', Date>
216
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.createdBy', string | null>
217
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.updatedBy', string | null>
218
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.name', string>
219
+ | RelationUUIDRules<'items.categories.products.skus.attributes.value.attribute.values.id', UUID>
220
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.values.createdAt', Date>
221
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.values.updatedAt', Date>
222
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.values.createdBy', string | null>
223
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.values.updatedBy', string | null>
224
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.values.name', string>
225
+ | RelationUUIDRules<'items.categories.products.skus.attributes.value.attribute.skuAttributes.id', UUID>
226
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt', Date>
227
+ | RelationDateRules<'items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
228
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
229
+ | RelationStringRules<'items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
230
+ | RelationUUIDRules<'items.categories.products.skus.attributes.value.skuAttributeValues.id', UUID>
231
+ | RelationDateRules<'items.categories.products.skus.attributes.value.skuAttributeValues.createdAt', Date>
232
+ | RelationDateRules<'items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt', Date>
233
+ | RelationStringRules<'items.categories.products.skus.attributes.value.skuAttributeValues.createdBy', string | null>
234
+ | RelationStringRules<'items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy', string | null>
235
+ | RelationUUIDRules<'items.categories.products.skus.orderItems.id', UUID>
236
+ | RelationDateRules<'items.categories.products.skus.orderItems.createdAt', Date>
237
+ | RelationDateRules<'items.categories.products.skus.orderItems.updatedAt', Date>
238
+ | RelationStringRules<'items.categories.products.skus.orderItems.createdBy', string | null>
239
+ | RelationStringRules<'items.categories.products.skus.orderItems.updatedBy', string | null>
240
+ | RelationStringRules<'items.categories.products.skus.orderItems.productName', string>
241
+ | RelationNumberRules<'items.categories.products.skus.orderItems.quantity', number>
242
+ | RelationNumberRules<'items.categories.products.skus.orderItems.price', number>;
58
243
 
59
244
  /**
60
245
  * RuleGroupBase
@@ -67,6 +252,7 @@ export declare type OrderRuleGroup = RuleGroupBase<typeof Order,
67
252
  |'updatedBy'
68
253
  |'number'
69
254
  |'amount'
255
+ |'status'
70
256
  |'ownerId'
71
257
  |'owner'
72
258
  |'owner.id'
@@ -106,18 +292,242 @@ export declare type OrderRuleGroup = RuleGroupBase<typeof Order,
106
292
  |'items.quantity'
107
293
  |'items.price'
108
294
  |'orderId'
295
+ |'skuId'
296
+ |'items.sku.id'
297
+ |'items.sku.createdAt'
298
+ |'items.sku.updatedAt'
299
+ |'items.sku.createdBy'
300
+ |'items.sku.updatedBy'
301
+ |'items.sku.code'
302
+ |'items.sku.price'
303
+ |'items.sku.stock'
304
+ |'productId'
305
+ |'items.sku.attributes.id'
306
+ |'items.sku.attributes.createdAt'
307
+ |'items.sku.attributes.updatedAt'
308
+ |'items.sku.attributes.createdBy'
309
+ |'items.sku.attributes.updatedBy'
310
+ |'skuId'
311
+ |'attributeId'
312
+ |'valueId'
313
+ |'items.sku.attributes.attribute.id'
314
+ |'items.sku.attributes.attribute.createdAt'
315
+ |'items.sku.attributes.attribute.updatedAt'
316
+ |'items.sku.attributes.attribute.createdBy'
317
+ |'items.sku.attributes.attribute.updatedBy'
318
+ |'items.sku.attributes.attribute.name'
319
+ |'items.sku.attributes.attribute.values.id'
320
+ |'items.sku.attributes.attribute.values.createdAt'
321
+ |'items.sku.attributes.attribute.values.updatedAt'
322
+ |'items.sku.attributes.attribute.values.createdBy'
323
+ |'items.sku.attributes.attribute.values.updatedBy'
324
+ |'items.sku.attributes.attribute.values.name'
325
+ |'attributeId'
326
+ |'items.sku.attributes.attribute.values.skuAttributeValues.id'
327
+ |'items.sku.attributes.attribute.values.skuAttributeValues.createdAt'
328
+ |'items.sku.attributes.attribute.values.skuAttributeValues.updatedAt'
329
+ |'items.sku.attributes.attribute.values.skuAttributeValues.createdBy'
330
+ |'items.sku.attributes.attribute.values.skuAttributeValues.updatedBy'
331
+ |'skuId'
332
+ |'attributeId'
333
+ |'valueId'
334
+ |'items.sku.attributes.attribute.skuAttributes.id'
335
+ |'items.sku.attributes.attribute.skuAttributes.createdAt'
336
+ |'items.sku.attributes.attribute.skuAttributes.updatedAt'
337
+ |'items.sku.attributes.attribute.skuAttributes.createdBy'
338
+ |'items.sku.attributes.attribute.skuAttributes.updatedBy'
339
+ |'skuId'
340
+ |'attributeId'
341
+ |'valueId'
342
+ |'items.sku.attributes.value.id'
343
+ |'items.sku.attributes.value.createdAt'
344
+ |'items.sku.attributes.value.updatedAt'
345
+ |'items.sku.attributes.value.createdBy'
346
+ |'items.sku.attributes.value.updatedBy'
347
+ |'items.sku.attributes.value.name'
348
+ |'attributeId'
349
+ |'items.sku.attributes.value.attribute.id'
350
+ |'items.sku.attributes.value.attribute.createdAt'
351
+ |'items.sku.attributes.value.attribute.updatedAt'
352
+ |'items.sku.attributes.value.attribute.createdBy'
353
+ |'items.sku.attributes.value.attribute.updatedBy'
354
+ |'items.sku.attributes.value.attribute.name'
355
+ |'items.sku.attributes.value.attribute.values.id'
356
+ |'items.sku.attributes.value.attribute.values.createdAt'
357
+ |'items.sku.attributes.value.attribute.values.updatedAt'
358
+ |'items.sku.attributes.value.attribute.values.createdBy'
359
+ |'items.sku.attributes.value.attribute.values.updatedBy'
360
+ |'items.sku.attributes.value.attribute.values.name'
361
+ |'attributeId'
362
+ |'items.sku.attributes.value.attribute.skuAttributes.id'
363
+ |'items.sku.attributes.value.attribute.skuAttributes.createdAt'
364
+ |'items.sku.attributes.value.attribute.skuAttributes.updatedAt'
365
+ |'items.sku.attributes.value.attribute.skuAttributes.createdBy'
366
+ |'items.sku.attributes.value.attribute.skuAttributes.updatedBy'
367
+ |'skuId'
368
+ |'attributeId'
369
+ |'valueId'
370
+ |'items.sku.attributes.value.skuAttributeValues.id'
371
+ |'items.sku.attributes.value.skuAttributeValues.createdAt'
372
+ |'items.sku.attributes.value.skuAttributeValues.updatedAt'
373
+ |'items.sku.attributes.value.skuAttributeValues.createdBy'
374
+ |'items.sku.attributes.value.skuAttributeValues.updatedBy'
375
+ |'skuId'
376
+ |'attributeId'
377
+ |'valueId'
378
+ |'items.sku.orderItems.id'
379
+ |'items.sku.orderItems.createdAt'
380
+ |'items.sku.orderItems.updatedAt'
381
+ |'items.sku.orderItems.createdBy'
382
+ |'items.sku.orderItems.updatedBy'
383
+ |'items.sku.orderItems.productName'
384
+ |'items.sku.orderItems.quantity'
385
+ |'items.sku.orderItems.price'
386
+ |'orderId'
387
+ |'skuId'
388
+ |'items.sku.product.id'
389
+ |'items.sku.product.createdAt'
390
+ |'items.sku.product.updatedAt'
391
+ |'items.sku.product.createdBy'
392
+ |'items.sku.product.updatedBy'
393
+ |'items.sku.product.name'
394
+ |'items.sku.product.description'
395
+ |'items.sku.product.skus.id'
396
+ |'items.sku.product.skus.createdAt'
397
+ |'items.sku.product.skus.updatedAt'
398
+ |'items.sku.product.skus.createdBy'
399
+ |'items.sku.product.skus.updatedBy'
400
+ |'items.sku.product.skus.code'
401
+ |'items.sku.product.skus.price'
402
+ |'items.sku.product.skus.stock'
403
+ |'productId'
404
+ |'items.sku.product.categories.id'
405
+ |'items.sku.product.categories.createdAt'
406
+ |'items.sku.product.categories.updatedAt'
407
+ |'items.sku.product.categories.createdBy'
408
+ |'items.sku.product.categories.updatedBy'
409
+ |'items.sku.product.categories.name'
410
+ |'items.sku.product.categories.orderItems.id'
411
+ |'items.sku.product.categories.orderItems.createdAt'
412
+ |'items.sku.product.categories.orderItems.updatedAt'
413
+ |'items.sku.product.categories.orderItems.createdBy'
414
+ |'items.sku.product.categories.orderItems.updatedBy'
415
+ |'items.sku.product.categories.orderItems.productName'
416
+ |'items.sku.product.categories.orderItems.quantity'
417
+ |'items.sku.product.categories.orderItems.price'
418
+ |'orderId'
419
+ |'skuId'
109
420
  |'items.categories.id'
110
421
  |'items.categories.createdAt'
111
422
  |'items.categories.updatedAt'
112
423
  |'items.categories.createdBy'
113
424
  |'items.categories.updatedBy'
114
- |'items.categories.name',
425
+ |'items.categories.name'
426
+ |'items.categories.products.id'
427
+ |'items.categories.products.createdAt'
428
+ |'items.categories.products.updatedAt'
429
+ |'items.categories.products.createdBy'
430
+ |'items.categories.products.updatedBy'
431
+ |'items.categories.products.name'
432
+ |'items.categories.products.description'
433
+ |'items.categories.products.skus.id'
434
+ |'items.categories.products.skus.createdAt'
435
+ |'items.categories.products.skus.updatedAt'
436
+ |'items.categories.products.skus.createdBy'
437
+ |'items.categories.products.skus.updatedBy'
438
+ |'items.categories.products.skus.code'
439
+ |'items.categories.products.skus.price'
440
+ |'items.categories.products.skus.stock'
441
+ |'productId'
442
+ |'items.categories.products.skus.attributes.id'
443
+ |'items.categories.products.skus.attributes.createdAt'
444
+ |'items.categories.products.skus.attributes.updatedAt'
445
+ |'items.categories.products.skus.attributes.createdBy'
446
+ |'items.categories.products.skus.attributes.updatedBy'
447
+ |'skuId'
448
+ |'attributeId'
449
+ |'valueId'
450
+ |'items.categories.products.skus.attributes.attribute.id'
451
+ |'items.categories.products.skus.attributes.attribute.createdAt'
452
+ |'items.categories.products.skus.attributes.attribute.updatedAt'
453
+ |'items.categories.products.skus.attributes.attribute.createdBy'
454
+ |'items.categories.products.skus.attributes.attribute.updatedBy'
455
+ |'items.categories.products.skus.attributes.attribute.name'
456
+ |'items.categories.products.skus.attributes.attribute.values.id'
457
+ |'items.categories.products.skus.attributes.attribute.values.createdAt'
458
+ |'items.categories.products.skus.attributes.attribute.values.updatedAt'
459
+ |'items.categories.products.skus.attributes.attribute.values.createdBy'
460
+ |'items.categories.products.skus.attributes.attribute.values.updatedBy'
461
+ |'items.categories.products.skus.attributes.attribute.values.name'
462
+ |'attributeId'
463
+ |'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id'
464
+ |'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt'
465
+ |'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt'
466
+ |'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy'
467
+ |'items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy'
468
+ |'skuId'
469
+ |'attributeId'
470
+ |'valueId'
471
+ |'items.categories.products.skus.attributes.attribute.skuAttributes.id'
472
+ |'items.categories.products.skus.attributes.attribute.skuAttributes.createdAt'
473
+ |'items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt'
474
+ |'items.categories.products.skus.attributes.attribute.skuAttributes.createdBy'
475
+ |'items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy'
476
+ |'skuId'
477
+ |'attributeId'
478
+ |'valueId'
479
+ |'items.categories.products.skus.attributes.value.id'
480
+ |'items.categories.products.skus.attributes.value.createdAt'
481
+ |'items.categories.products.skus.attributes.value.updatedAt'
482
+ |'items.categories.products.skus.attributes.value.createdBy'
483
+ |'items.categories.products.skus.attributes.value.updatedBy'
484
+ |'items.categories.products.skus.attributes.value.name'
485
+ |'attributeId'
486
+ |'items.categories.products.skus.attributes.value.attribute.id'
487
+ |'items.categories.products.skus.attributes.value.attribute.createdAt'
488
+ |'items.categories.products.skus.attributes.value.attribute.updatedAt'
489
+ |'items.categories.products.skus.attributes.value.attribute.createdBy'
490
+ |'items.categories.products.skus.attributes.value.attribute.updatedBy'
491
+ |'items.categories.products.skus.attributes.value.attribute.name'
492
+ |'items.categories.products.skus.attributes.value.attribute.values.id'
493
+ |'items.categories.products.skus.attributes.value.attribute.values.createdAt'
494
+ |'items.categories.products.skus.attributes.value.attribute.values.updatedAt'
495
+ |'items.categories.products.skus.attributes.value.attribute.values.createdBy'
496
+ |'items.categories.products.skus.attributes.value.attribute.values.updatedBy'
497
+ |'items.categories.products.skus.attributes.value.attribute.values.name'
498
+ |'attributeId'
499
+ |'items.categories.products.skus.attributes.value.attribute.skuAttributes.id'
500
+ |'items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt'
501
+ |'items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt'
502
+ |'items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy'
503
+ |'items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy'
504
+ |'skuId'
505
+ |'attributeId'
506
+ |'valueId'
507
+ |'items.categories.products.skus.attributes.value.skuAttributeValues.id'
508
+ |'items.categories.products.skus.attributes.value.skuAttributeValues.createdAt'
509
+ |'items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt'
510
+ |'items.categories.products.skus.attributes.value.skuAttributeValues.createdBy'
511
+ |'items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy'
512
+ |'skuId'
513
+ |'attributeId'
514
+ |'valueId'
515
+ |'items.categories.products.skus.orderItems.id'
516
+ |'items.categories.products.skus.orderItems.createdAt'
517
+ |'items.categories.products.skus.orderItems.updatedAt'
518
+ |'items.categories.products.skus.orderItems.createdBy'
519
+ |'items.categories.products.skus.orderItems.updatedBy'
520
+ |'items.categories.products.skus.orderItems.productName'
521
+ |'items.categories.products.skus.orderItems.quantity'
522
+ |'items.categories.products.skus.orderItems.price'
523
+ |'orderId'
524
+ |'skuId',
115
525
  OrderRule>;
116
526
 
117
527
  /**
118
528
  * OrderByField
119
529
  */
120
- declare type OrderOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "number" | "amount";
530
+ declare type OrderOrderByField = "id" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "number" | "amount" | "status";
121
531
 
122
532
  /**
123
533
  * 静态类型
@@ -169,6 +579,11 @@ export interface OrderInitData {
169
579
  * 订单总金额
170
580
  */
171
581
  amount?: number;
582
+ /**
583
+ * 订单状态
584
+ * @default 'pending'
585
+ */
586
+ status?: string | null;
172
587
  /**
173
588
  * 所有者 id
174
589
  */
@@ -200,6 +615,11 @@ export declare class Order extends EntityBase implements IEntity {
200
615
  * 所有者 id
201
616
  */
202
617
  ownerId: UUID;
618
+ /**
619
+ * 订单状态
620
+ * @default 'pending'
621
+ */
622
+ status?: string | null;
203
623
  /**
204
624
  * 初始化数据
205
625
  * @param initData 初始化数据
@@ -4,6 +4,7 @@ Order = __decorateClass(
4
4
  [
5
5
  Entity({
6
6
  name: "Order",
7
+ namespace: "shop",
7
8
  tableName: "order",
8
9
  displayName: "订单",
9
10
  properties: [
@@ -19,6 +20,14 @@ Order = __decorateClass(
19
20
  type: PropertyType.number,
20
21
  displayName: "订单总金额",
21
22
  columnName: "amount"
23
+ },
24
+ {
25
+ name: "status",
26
+ type: PropertyType.string,
27
+ displayName: "订单状态",
28
+ default: "pending",
29
+ nullable: true,
30
+ columnName: "status"
22
31
  }
23
32
  ],
24
33
  relations: [
@@ -28,7 +37,7 @@ Order = __decorateClass(
28
37
  kind: RelationKind.MANY_TO_ONE,
29
38
  mappedEntity: "User",
30
39
  mappedProperty: "orders",
31
- mappedNamespace: "public",
40
+ mappedNamespace: "shop",
32
41
  onDelete: "RESTRICT",
33
42
  onUpdate: "RESTRICT",
34
43
  columnName: "ownerId"
@@ -39,13 +48,12 @@ Order = __decorateClass(
39
48
  kind: RelationKind.ONE_TO_MANY,
40
49
  mappedEntity: "OrderItem",
41
50
  mappedProperty: "order",
42
- mappedNamespace: "public",
51
+ mappedNamespace: "shop",
43
52
  onDelete: "CASCADE",
44
53
  onUpdate: "RESTRICT"
45
54
  }
46
55
  ],
47
56
  repository: "Repository",
48
- namespace: "public",
49
57
  indexes: [],
50
58
  computedProperties: [],
51
59
  extends: [