@aiao/rxdb-test 0.0.2 → 0.0.4

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.
@@ -0,0 +1,3136 @@
1
+ import { BooleanRules, CountOptions, DateRules, ENTITY_STATIC_TYPES, EntityBase, EntityType, FindAllOptions, FindOneOptions, FindOneOrFailOptions, FindOptions, GetOptions, IEntityStaticType, ITreeEntity, NumberRules, RelationBooleanRules, RelationDateRules, RelationEntitiesObservable, RelationEntityObservable, RelationNumberRules, RelationStringRules, RelationUUIDRules, RuleGroupCustom, StringRules, UUID, UUIDRules } from '@aiao/rxdb';
2
+ import { Observable } from 'rxjs';
3
+
4
+ /**
5
+ * rule
6
+ */
7
+ declare type UserRule = UUIDRules<User, 'id'>
8
+ | DateRules<User, 'createdAt'>
9
+ | DateRules<User, 'updatedAt'>
10
+ | DateRules<User, 'removedAt'>
11
+ | StringRules<User, 'createdBy'>
12
+ | StringRules<User, 'updatedBy'>
13
+ | StringRules<User, 'removedBy'>
14
+ | StringRules<User, 'name'>
15
+ | BooleanRules<User, 'married'>
16
+ | NumberRules<User, 'age'>
17
+ | StringRules<User, 'gender'>
18
+ | UUIDRules<User, 'idCardId'>
19
+ | RelationUUIDRules<'idCard.id', UUID>
20
+ | RelationDateRules<'idCard.createdAt', Date>
21
+ | RelationDateRules<'idCard.updatedAt', Date>
22
+ | RelationDateRules<'idCard.removedAt', Date | null>
23
+ | RelationStringRules<'idCard.createdBy', string | null>
24
+ | RelationStringRules<'idCard.updatedBy', string | null>
25
+ | RelationStringRules<'idCard.removedBy', string | null>
26
+ | RelationStringRules<'idCard.code', string>
27
+ | UUIDRules<IdCard, 'ownerId'>
28
+ | RelationUUIDRules<'orders.id', UUID>
29
+ | RelationDateRules<'orders.createdAt', Date>
30
+ | RelationDateRules<'orders.updatedAt', Date>
31
+ | RelationDateRules<'orders.removedAt', Date | null>
32
+ | RelationStringRules<'orders.createdBy', string | null>
33
+ | RelationStringRules<'orders.updatedBy', string | null>
34
+ | RelationStringRules<'orders.removedBy', string | null>
35
+ | RelationStringRules<'orders.number', string>
36
+ | RelationNumberRules<'orders.amount', number>
37
+ | UUIDRules<Order, 'ownerId'>
38
+ | RelationUUIDRules<'orders.items.id', UUID>
39
+ | RelationDateRules<'orders.items.createdAt', Date>
40
+ | RelationDateRules<'orders.items.updatedAt', Date>
41
+ | RelationDateRules<'orders.items.removedAt', Date | null>
42
+ | RelationStringRules<'orders.items.createdBy', string | null>
43
+ | RelationStringRules<'orders.items.updatedBy', string | null>
44
+ | RelationStringRules<'orders.items.removedBy', string | null>
45
+ | RelationStringRules<'orders.items.productName', string>
46
+ | RelationNumberRules<'orders.items.quantity', number>
47
+ | RelationNumberRules<'orders.items.price', number>
48
+ | UUIDRules<OrderItem, 'orderId'>
49
+ | RelationUUIDRules<'orders.items.categories.id', UUID>
50
+ | RelationDateRules<'orders.items.categories.createdAt', Date>
51
+ | RelationDateRules<'orders.items.categories.updatedAt', Date>
52
+ | RelationDateRules<'orders.items.categories.removedAt', Date | null>
53
+ | RelationStringRules<'orders.items.categories.createdBy', string | null>
54
+ | RelationStringRules<'orders.items.categories.updatedBy', string | null>
55
+ | RelationStringRules<'orders.items.categories.removedBy', string | null>
56
+ | RelationStringRules<'orders.items.categories.name', string>;
57
+
58
+ /**
59
+ * RuleGroupCustom
60
+ */
61
+ export declare type UserRuleGroup = RuleGroupCustom<typeof User,
62
+ |'id'
63
+ |'createdAt'
64
+ |'updatedAt'
65
+ |'removedAt'
66
+ |'createdBy'
67
+ |'updatedBy'
68
+ |'removedBy'
69
+ |'name'
70
+ |'married'
71
+ |'age'
72
+ |'gender'
73
+ |'idCardId'
74
+ |'idCard.id'
75
+ |'idCard.createdAt'
76
+ |'idCard.updatedAt'
77
+ |'idCard.removedAt'
78
+ |'idCard.createdBy'
79
+ |'idCard.updatedBy'
80
+ |'idCard.removedBy'
81
+ |'idCard.code'
82
+ |'ownerId'
83
+ |'orders.id'
84
+ |'orders.createdAt'
85
+ |'orders.updatedAt'
86
+ |'orders.removedAt'
87
+ |'orders.createdBy'
88
+ |'orders.updatedBy'
89
+ |'orders.removedBy'
90
+ |'orders.number'
91
+ |'orders.amount'
92
+ |'ownerId'
93
+ |'orders.items.id'
94
+ |'orders.items.createdAt'
95
+ |'orders.items.updatedAt'
96
+ |'orders.items.removedAt'
97
+ |'orders.items.createdBy'
98
+ |'orders.items.updatedBy'
99
+ |'orders.items.removedBy'
100
+ |'orders.items.productName'
101
+ |'orders.items.quantity'
102
+ |'orders.items.price'
103
+ |'orderId'
104
+ |'orders.items.categories.id'
105
+ |'orders.items.categories.createdAt'
106
+ |'orders.items.categories.updatedAt'
107
+ |'orders.items.categories.removedAt'
108
+ |'orders.items.categories.createdBy'
109
+ |'orders.items.categories.updatedBy'
110
+ |'orders.items.categories.removedBy'
111
+ |'orders.items.categories.name',
112
+ UserRule>;
113
+
114
+ /**
115
+ * OrderByField
116
+ */
117
+ declare type UserOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name" | "married" | "age" | "gender";
118
+
119
+ /**
120
+ * rule
121
+ */
122
+ declare type SKUAttributesRule = UUIDRules<SKUAttributes, 'id'>
123
+ | DateRules<SKUAttributes, 'createdAt'>
124
+ | DateRules<SKUAttributes, 'updatedAt'>
125
+ | DateRules<SKUAttributes, 'removedAt'>
126
+ | StringRules<SKUAttributes, 'createdBy'>
127
+ | StringRules<SKUAttributes, 'updatedBy'>
128
+ | StringRules<SKUAttributes, 'removedBy'>
129
+ | UUIDRules<SKUAttributes, 'skuId'>
130
+ | UUIDRules<SKUAttributes, 'attributeId'>
131
+ | UUIDRules<SKUAttributes, 'valueId'>
132
+ | RelationUUIDRules<'sku.id', UUID>
133
+ | RelationDateRules<'sku.createdAt', Date>
134
+ | RelationDateRules<'sku.updatedAt', Date>
135
+ | RelationDateRules<'sku.removedAt', Date | null>
136
+ | RelationStringRules<'sku.createdBy', string | null>
137
+ | RelationStringRules<'sku.updatedBy', string | null>
138
+ | RelationStringRules<'sku.removedBy', string | null>
139
+ | RelationStringRules<'sku.code', string>
140
+ | RelationNumberRules<'sku.price', any>
141
+ | RelationNumberRules<'sku.stock', any>
142
+ | UUIDRules<SKU, 'productId'>
143
+ | RelationUUIDRules<'sku.product.id', UUID>
144
+ | RelationDateRules<'sku.product.createdAt', Date>
145
+ | RelationDateRules<'sku.product.updatedAt', Date>
146
+ | RelationDateRules<'sku.product.removedAt', Date | null>
147
+ | RelationStringRules<'sku.product.createdBy', string | null>
148
+ | RelationStringRules<'sku.product.updatedBy', string | null>
149
+ | RelationStringRules<'sku.product.removedBy', string | null>
150
+ | RelationStringRules<'sku.product.name', string>
151
+ | RelationStringRules<'sku.product.description', string | null>
152
+ | RelationUUIDRules<'sku.product.skus.id', UUID>
153
+ | RelationDateRules<'sku.product.skus.createdAt', Date>
154
+ | RelationDateRules<'sku.product.skus.updatedAt', Date>
155
+ | RelationDateRules<'sku.product.skus.removedAt', Date | null>
156
+ | RelationStringRules<'sku.product.skus.createdBy', string | null>
157
+ | RelationStringRules<'sku.product.skus.updatedBy', string | null>
158
+ | RelationStringRules<'sku.product.skus.removedBy', string | null>
159
+ | RelationStringRules<'sku.product.skus.code', string>
160
+ | RelationNumberRules<'sku.product.skus.price', any>
161
+ | RelationNumberRules<'sku.product.skus.stock', any>
162
+ | RelationUUIDRules<'attribute.id', UUID>
163
+ | RelationDateRules<'attribute.createdAt', Date>
164
+ | RelationDateRules<'attribute.updatedAt', Date>
165
+ | RelationDateRules<'attribute.removedAt', Date | null>
166
+ | RelationStringRules<'attribute.createdBy', string | null>
167
+ | RelationStringRules<'attribute.updatedBy', string | null>
168
+ | RelationStringRules<'attribute.removedBy', string | null>
169
+ | RelationStringRules<'attribute.name', string>
170
+ | RelationUUIDRules<'attribute.values.id', UUID>
171
+ | RelationDateRules<'attribute.values.createdAt', Date>
172
+ | RelationDateRules<'attribute.values.updatedAt', Date>
173
+ | RelationDateRules<'attribute.values.removedAt', Date | null>
174
+ | RelationStringRules<'attribute.values.createdBy', string | null>
175
+ | RelationStringRules<'attribute.values.updatedBy', string | null>
176
+ | RelationStringRules<'attribute.values.removedBy', string | null>
177
+ | RelationStringRules<'attribute.values.name', string>
178
+ | UUIDRules<AttributeValue, 'attributeId'>
179
+ | RelationUUIDRules<'value.id', UUID>
180
+ | RelationDateRules<'value.createdAt', Date>
181
+ | RelationDateRules<'value.updatedAt', Date>
182
+ | RelationDateRules<'value.removedAt', Date | null>
183
+ | RelationStringRules<'value.createdBy', string | null>
184
+ | RelationStringRules<'value.updatedBy', string | null>
185
+ | RelationStringRules<'value.removedBy', string | null>
186
+ | RelationStringRules<'value.name', string>
187
+ | RelationUUIDRules<'value.attribute.id', UUID>
188
+ | RelationDateRules<'value.attribute.createdAt', Date>
189
+ | RelationDateRules<'value.attribute.updatedAt', Date>
190
+ | RelationDateRules<'value.attribute.removedAt', Date | null>
191
+ | RelationStringRules<'value.attribute.createdBy', string | null>
192
+ | RelationStringRules<'value.attribute.updatedBy', string | null>
193
+ | RelationStringRules<'value.attribute.removedBy', string | null>
194
+ | RelationStringRules<'value.attribute.name', string>
195
+ | RelationUUIDRules<'value.attribute.values.id', UUID>
196
+ | RelationDateRules<'value.attribute.values.createdAt', Date>
197
+ | RelationDateRules<'value.attribute.values.updatedAt', Date>
198
+ | RelationDateRules<'value.attribute.values.removedAt', Date | null>
199
+ | RelationStringRules<'value.attribute.values.createdBy', string | null>
200
+ | RelationStringRules<'value.attribute.values.updatedBy', string | null>
201
+ | RelationStringRules<'value.attribute.values.removedBy', string | null>
202
+ | RelationStringRules<'value.attribute.values.name', string>;
203
+
204
+ /**
205
+ * RuleGroupCustom
206
+ */
207
+ export declare type SKUAttributesRuleGroup = RuleGroupCustom<typeof SKUAttributes,
208
+ |'id'
209
+ |'createdAt'
210
+ |'updatedAt'
211
+ |'removedAt'
212
+ |'createdBy'
213
+ |'updatedBy'
214
+ |'removedBy'
215
+ |'skuId'
216
+ |'attributeId'
217
+ |'valueId'
218
+ |'sku.id'
219
+ |'sku.createdAt'
220
+ |'sku.updatedAt'
221
+ |'sku.removedAt'
222
+ |'sku.createdBy'
223
+ |'sku.updatedBy'
224
+ |'sku.removedBy'
225
+ |'sku.code'
226
+ |'sku.price'
227
+ |'sku.stock'
228
+ |'productId'
229
+ |'sku.product.id'
230
+ |'sku.product.createdAt'
231
+ |'sku.product.updatedAt'
232
+ |'sku.product.removedAt'
233
+ |'sku.product.createdBy'
234
+ |'sku.product.updatedBy'
235
+ |'sku.product.removedBy'
236
+ |'sku.product.name'
237
+ |'sku.product.description'
238
+ |'sku.product.skus.id'
239
+ |'sku.product.skus.createdAt'
240
+ |'sku.product.skus.updatedAt'
241
+ |'sku.product.skus.removedAt'
242
+ |'sku.product.skus.createdBy'
243
+ |'sku.product.skus.updatedBy'
244
+ |'sku.product.skus.removedBy'
245
+ |'sku.product.skus.code'
246
+ |'sku.product.skus.price'
247
+ |'sku.product.skus.stock'
248
+ |'productId'
249
+ |'attribute.id'
250
+ |'attribute.createdAt'
251
+ |'attribute.updatedAt'
252
+ |'attribute.removedAt'
253
+ |'attribute.createdBy'
254
+ |'attribute.updatedBy'
255
+ |'attribute.removedBy'
256
+ |'attribute.name'
257
+ |'attribute.values.id'
258
+ |'attribute.values.createdAt'
259
+ |'attribute.values.updatedAt'
260
+ |'attribute.values.removedAt'
261
+ |'attribute.values.createdBy'
262
+ |'attribute.values.updatedBy'
263
+ |'attribute.values.removedBy'
264
+ |'attribute.values.name'
265
+ |'attributeId'
266
+ |'value.id'
267
+ |'value.createdAt'
268
+ |'value.updatedAt'
269
+ |'value.removedAt'
270
+ |'value.createdBy'
271
+ |'value.updatedBy'
272
+ |'value.removedBy'
273
+ |'value.name'
274
+ |'attributeId'
275
+ |'value.attribute.id'
276
+ |'value.attribute.createdAt'
277
+ |'value.attribute.updatedAt'
278
+ |'value.attribute.removedAt'
279
+ |'value.attribute.createdBy'
280
+ |'value.attribute.updatedBy'
281
+ |'value.attribute.removedBy'
282
+ |'value.attribute.name'
283
+ |'value.attribute.values.id'
284
+ |'value.attribute.values.createdAt'
285
+ |'value.attribute.values.updatedAt'
286
+ |'value.attribute.values.removedAt'
287
+ |'value.attribute.values.createdBy'
288
+ |'value.attribute.values.updatedBy'
289
+ |'value.attribute.values.removedBy'
290
+ |'value.attribute.values.name'
291
+ |'attributeId',
292
+ SKUAttributesRule>;
293
+
294
+ /**
295
+ * OrderByField
296
+ */
297
+ declare type SKUAttributesOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy";
298
+
299
+ /**
300
+ * rule
301
+ */
302
+ declare type SKURule = UUIDRules<SKU, 'id'>
303
+ | DateRules<SKU, 'createdAt'>
304
+ | DateRules<SKU, 'updatedAt'>
305
+ | DateRules<SKU, 'removedAt'>
306
+ | StringRules<SKU, 'createdBy'>
307
+ | StringRules<SKU, 'updatedBy'>
308
+ | StringRules<SKU, 'removedBy'>
309
+ | StringRules<SKU, 'code'>
310
+ | NumberRules<SKU, 'price'>
311
+ | NumberRules<SKU, 'stock'>
312
+ | UUIDRules<SKU, 'productId'>
313
+ | RelationUUIDRules<'attributes.id', UUID>
314
+ | RelationDateRules<'attributes.createdAt', Date>
315
+ | RelationDateRules<'attributes.updatedAt', Date>
316
+ | RelationDateRules<'attributes.removedAt', Date | null>
317
+ | RelationStringRules<'attributes.createdBy', string | null>
318
+ | RelationStringRules<'attributes.updatedBy', string | null>
319
+ | RelationStringRules<'attributes.removedBy', string | null>
320
+ | UUIDRules<SKUAttributes, 'skuId'>
321
+ | UUIDRules<SKUAttributes, 'attributeId'>
322
+ | UUIDRules<SKUAttributes, 'valueId'>
323
+ | RelationUUIDRules<'attributes.attribute.id', UUID>
324
+ | RelationDateRules<'attributes.attribute.createdAt', Date>
325
+ | RelationDateRules<'attributes.attribute.updatedAt', Date>
326
+ | RelationDateRules<'attributes.attribute.removedAt', Date | null>
327
+ | RelationStringRules<'attributes.attribute.createdBy', string | null>
328
+ | RelationStringRules<'attributes.attribute.updatedBy', string | null>
329
+ | RelationStringRules<'attributes.attribute.removedBy', string | null>
330
+ | RelationStringRules<'attributes.attribute.name', string>
331
+ | RelationUUIDRules<'attributes.attribute.values.id', UUID>
332
+ | RelationDateRules<'attributes.attribute.values.createdAt', Date>
333
+ | RelationDateRules<'attributes.attribute.values.updatedAt', Date>
334
+ | RelationDateRules<'attributes.attribute.values.removedAt', Date | null>
335
+ | RelationStringRules<'attributes.attribute.values.createdBy', string | null>
336
+ | RelationStringRules<'attributes.attribute.values.updatedBy', string | null>
337
+ | RelationStringRules<'attributes.attribute.values.removedBy', string | null>
338
+ | RelationStringRules<'attributes.attribute.values.name', string>
339
+ | UUIDRules<AttributeValue, 'attributeId'>
340
+ | RelationUUIDRules<'attributes.attribute.values.skuAttributeValues.id', UUID>
341
+ | RelationDateRules<'attributes.attribute.values.skuAttributeValues.createdAt', Date>
342
+ | RelationDateRules<'attributes.attribute.values.skuAttributeValues.updatedAt', Date>
343
+ | RelationDateRules<'attributes.attribute.values.skuAttributeValues.removedAt', Date | null>
344
+ | RelationStringRules<'attributes.attribute.values.skuAttributeValues.createdBy', string | null>
345
+ | RelationStringRules<'attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
346
+ | RelationStringRules<'attributes.attribute.values.skuAttributeValues.removedBy', string | null>
347
+ | RelationUUIDRules<'attributes.attribute.skuAttributes.id', UUID>
348
+ | RelationDateRules<'attributes.attribute.skuAttributes.createdAt', Date>
349
+ | RelationDateRules<'attributes.attribute.skuAttributes.updatedAt', Date>
350
+ | RelationDateRules<'attributes.attribute.skuAttributes.removedAt', Date | null>
351
+ | RelationStringRules<'attributes.attribute.skuAttributes.createdBy', string | null>
352
+ | RelationStringRules<'attributes.attribute.skuAttributes.updatedBy', string | null>
353
+ | RelationStringRules<'attributes.attribute.skuAttributes.removedBy', string | null>
354
+ | RelationUUIDRules<'attributes.value.id', UUID>
355
+ | RelationDateRules<'attributes.value.createdAt', Date>
356
+ | RelationDateRules<'attributes.value.updatedAt', Date>
357
+ | RelationDateRules<'attributes.value.removedAt', Date | null>
358
+ | RelationStringRules<'attributes.value.createdBy', string | null>
359
+ | RelationStringRules<'attributes.value.updatedBy', string | null>
360
+ | RelationStringRules<'attributes.value.removedBy', string | null>
361
+ | RelationStringRules<'attributes.value.name', string>
362
+ | RelationUUIDRules<'attributes.value.attribute.id', UUID>
363
+ | RelationDateRules<'attributes.value.attribute.createdAt', Date>
364
+ | RelationDateRules<'attributes.value.attribute.updatedAt', Date>
365
+ | RelationDateRules<'attributes.value.attribute.removedAt', Date | null>
366
+ | RelationStringRules<'attributes.value.attribute.createdBy', string | null>
367
+ | RelationStringRules<'attributes.value.attribute.updatedBy', string | null>
368
+ | RelationStringRules<'attributes.value.attribute.removedBy', string | null>
369
+ | RelationStringRules<'attributes.value.attribute.name', string>
370
+ | RelationUUIDRules<'attributes.value.attribute.values.id', UUID>
371
+ | RelationDateRules<'attributes.value.attribute.values.createdAt', Date>
372
+ | RelationDateRules<'attributes.value.attribute.values.updatedAt', Date>
373
+ | RelationDateRules<'attributes.value.attribute.values.removedAt', Date | null>
374
+ | RelationStringRules<'attributes.value.attribute.values.createdBy', string | null>
375
+ | RelationStringRules<'attributes.value.attribute.values.updatedBy', string | null>
376
+ | RelationStringRules<'attributes.value.attribute.values.removedBy', string | null>
377
+ | RelationStringRules<'attributes.value.attribute.values.name', string>
378
+ | RelationUUIDRules<'attributes.value.attribute.skuAttributes.id', UUID>
379
+ | RelationDateRules<'attributes.value.attribute.skuAttributes.createdAt', Date>
380
+ | RelationDateRules<'attributes.value.attribute.skuAttributes.updatedAt', Date>
381
+ | RelationDateRules<'attributes.value.attribute.skuAttributes.removedAt', Date | null>
382
+ | RelationStringRules<'attributes.value.attribute.skuAttributes.createdBy', string | null>
383
+ | RelationStringRules<'attributes.value.attribute.skuAttributes.updatedBy', string | null>
384
+ | RelationStringRules<'attributes.value.attribute.skuAttributes.removedBy', string | null>
385
+ | RelationUUIDRules<'attributes.value.skuAttributeValues.id', UUID>
386
+ | RelationDateRules<'attributes.value.skuAttributeValues.createdAt', Date>
387
+ | RelationDateRules<'attributes.value.skuAttributeValues.updatedAt', Date>
388
+ | RelationDateRules<'attributes.value.skuAttributeValues.removedAt', Date | null>
389
+ | RelationStringRules<'attributes.value.skuAttributeValues.createdBy', string | null>
390
+ | RelationStringRules<'attributes.value.skuAttributeValues.updatedBy', string | null>
391
+ | RelationStringRules<'attributes.value.skuAttributeValues.removedBy', string | null>
392
+ | RelationUUIDRules<'product.id', UUID>
393
+ | RelationDateRules<'product.createdAt', Date>
394
+ | RelationDateRules<'product.updatedAt', Date>
395
+ | RelationDateRules<'product.removedAt', Date | null>
396
+ | RelationStringRules<'product.createdBy', string | null>
397
+ | RelationStringRules<'product.updatedBy', string | null>
398
+ | RelationStringRules<'product.removedBy', string | null>
399
+ | RelationStringRules<'product.name', string>
400
+ | RelationStringRules<'product.description', string | null>;
401
+
402
+ /**
403
+ * RuleGroupCustom
404
+ */
405
+ export declare type SKURuleGroup = RuleGroupCustom<typeof SKU,
406
+ |'id'
407
+ |'createdAt'
408
+ |'updatedAt'
409
+ |'removedAt'
410
+ |'createdBy'
411
+ |'updatedBy'
412
+ |'removedBy'
413
+ |'code'
414
+ |'price'
415
+ |'stock'
416
+ |'productId'
417
+ |'attributes.id'
418
+ |'attributes.createdAt'
419
+ |'attributes.updatedAt'
420
+ |'attributes.removedAt'
421
+ |'attributes.createdBy'
422
+ |'attributes.updatedBy'
423
+ |'attributes.removedBy'
424
+ |'skuId'
425
+ |'attributeId'
426
+ |'valueId'
427
+ |'attributes.attribute.id'
428
+ |'attributes.attribute.createdAt'
429
+ |'attributes.attribute.updatedAt'
430
+ |'attributes.attribute.removedAt'
431
+ |'attributes.attribute.createdBy'
432
+ |'attributes.attribute.updatedBy'
433
+ |'attributes.attribute.removedBy'
434
+ |'attributes.attribute.name'
435
+ |'attributes.attribute.values.id'
436
+ |'attributes.attribute.values.createdAt'
437
+ |'attributes.attribute.values.updatedAt'
438
+ |'attributes.attribute.values.removedAt'
439
+ |'attributes.attribute.values.createdBy'
440
+ |'attributes.attribute.values.updatedBy'
441
+ |'attributes.attribute.values.removedBy'
442
+ |'attributes.attribute.values.name'
443
+ |'attributeId'
444
+ |'attributes.attribute.values.skuAttributeValues.id'
445
+ |'attributes.attribute.values.skuAttributeValues.createdAt'
446
+ |'attributes.attribute.values.skuAttributeValues.updatedAt'
447
+ |'attributes.attribute.values.skuAttributeValues.removedAt'
448
+ |'attributes.attribute.values.skuAttributeValues.createdBy'
449
+ |'attributes.attribute.values.skuAttributeValues.updatedBy'
450
+ |'attributes.attribute.values.skuAttributeValues.removedBy'
451
+ |'skuId'
452
+ |'attributeId'
453
+ |'valueId'
454
+ |'attributes.attribute.skuAttributes.id'
455
+ |'attributes.attribute.skuAttributes.createdAt'
456
+ |'attributes.attribute.skuAttributes.updatedAt'
457
+ |'attributes.attribute.skuAttributes.removedAt'
458
+ |'attributes.attribute.skuAttributes.createdBy'
459
+ |'attributes.attribute.skuAttributes.updatedBy'
460
+ |'attributes.attribute.skuAttributes.removedBy'
461
+ |'skuId'
462
+ |'attributeId'
463
+ |'valueId'
464
+ |'attributes.value.id'
465
+ |'attributes.value.createdAt'
466
+ |'attributes.value.updatedAt'
467
+ |'attributes.value.removedAt'
468
+ |'attributes.value.createdBy'
469
+ |'attributes.value.updatedBy'
470
+ |'attributes.value.removedBy'
471
+ |'attributes.value.name'
472
+ |'attributeId'
473
+ |'attributes.value.attribute.id'
474
+ |'attributes.value.attribute.createdAt'
475
+ |'attributes.value.attribute.updatedAt'
476
+ |'attributes.value.attribute.removedAt'
477
+ |'attributes.value.attribute.createdBy'
478
+ |'attributes.value.attribute.updatedBy'
479
+ |'attributes.value.attribute.removedBy'
480
+ |'attributes.value.attribute.name'
481
+ |'attributes.value.attribute.values.id'
482
+ |'attributes.value.attribute.values.createdAt'
483
+ |'attributes.value.attribute.values.updatedAt'
484
+ |'attributes.value.attribute.values.removedAt'
485
+ |'attributes.value.attribute.values.createdBy'
486
+ |'attributes.value.attribute.values.updatedBy'
487
+ |'attributes.value.attribute.values.removedBy'
488
+ |'attributes.value.attribute.values.name'
489
+ |'attributeId'
490
+ |'attributes.value.attribute.skuAttributes.id'
491
+ |'attributes.value.attribute.skuAttributes.createdAt'
492
+ |'attributes.value.attribute.skuAttributes.updatedAt'
493
+ |'attributes.value.attribute.skuAttributes.removedAt'
494
+ |'attributes.value.attribute.skuAttributes.createdBy'
495
+ |'attributes.value.attribute.skuAttributes.updatedBy'
496
+ |'attributes.value.attribute.skuAttributes.removedBy'
497
+ |'skuId'
498
+ |'attributeId'
499
+ |'valueId'
500
+ |'attributes.value.skuAttributeValues.id'
501
+ |'attributes.value.skuAttributeValues.createdAt'
502
+ |'attributes.value.skuAttributeValues.updatedAt'
503
+ |'attributes.value.skuAttributeValues.removedAt'
504
+ |'attributes.value.skuAttributeValues.createdBy'
505
+ |'attributes.value.skuAttributeValues.updatedBy'
506
+ |'attributes.value.skuAttributeValues.removedBy'
507
+ |'skuId'
508
+ |'attributeId'
509
+ |'valueId'
510
+ |'product.id'
511
+ |'product.createdAt'
512
+ |'product.updatedAt'
513
+ |'product.removedAt'
514
+ |'product.createdBy'
515
+ |'product.updatedBy'
516
+ |'product.removedBy'
517
+ |'product.name'
518
+ |'product.description',
519
+ SKURule>;
520
+
521
+ /**
522
+ * OrderByField
523
+ */
524
+ declare type SKUOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "code" | "price" | "stock";
525
+
526
+ /**
527
+ * rule
528
+ */
529
+ declare type ProductRule = UUIDRules<Product, 'id'>
530
+ | DateRules<Product, 'createdAt'>
531
+ | DateRules<Product, 'updatedAt'>
532
+ | DateRules<Product, 'removedAt'>
533
+ | StringRules<Product, 'createdBy'>
534
+ | StringRules<Product, 'updatedBy'>
535
+ | StringRules<Product, 'removedBy'>
536
+ | StringRules<Product, 'name'>
537
+ | StringRules<Product, 'description'>
538
+ | RelationUUIDRules<'skus.id', UUID>
539
+ | RelationDateRules<'skus.createdAt', Date>
540
+ | RelationDateRules<'skus.updatedAt', Date>
541
+ | RelationDateRules<'skus.removedAt', Date | null>
542
+ | RelationStringRules<'skus.createdBy', string | null>
543
+ | RelationStringRules<'skus.updatedBy', string | null>
544
+ | RelationStringRules<'skus.removedBy', string | null>
545
+ | RelationStringRules<'skus.code', string>
546
+ | RelationNumberRules<'skus.price', any>
547
+ | RelationNumberRules<'skus.stock', any>
548
+ | UUIDRules<SKU, 'productId'>
549
+ | RelationUUIDRules<'skus.attributes.id', UUID>
550
+ | RelationDateRules<'skus.attributes.createdAt', Date>
551
+ | RelationDateRules<'skus.attributes.updatedAt', Date>
552
+ | RelationDateRules<'skus.attributes.removedAt', Date | null>
553
+ | RelationStringRules<'skus.attributes.createdBy', string | null>
554
+ | RelationStringRules<'skus.attributes.updatedBy', string | null>
555
+ | RelationStringRules<'skus.attributes.removedBy', string | null>
556
+ | UUIDRules<SKUAttributes, 'skuId'>
557
+ | UUIDRules<SKUAttributes, 'attributeId'>
558
+ | UUIDRules<SKUAttributes, 'valueId'>
559
+ | RelationUUIDRules<'skus.attributes.attribute.id', UUID>
560
+ | RelationDateRules<'skus.attributes.attribute.createdAt', Date>
561
+ | RelationDateRules<'skus.attributes.attribute.updatedAt', Date>
562
+ | RelationDateRules<'skus.attributes.attribute.removedAt', Date | null>
563
+ | RelationStringRules<'skus.attributes.attribute.createdBy', string | null>
564
+ | RelationStringRules<'skus.attributes.attribute.updatedBy', string | null>
565
+ | RelationStringRules<'skus.attributes.attribute.removedBy', string | null>
566
+ | RelationStringRules<'skus.attributes.attribute.name', string>
567
+ | RelationUUIDRules<'skus.attributes.attribute.values.id', UUID>
568
+ | RelationDateRules<'skus.attributes.attribute.values.createdAt', Date>
569
+ | RelationDateRules<'skus.attributes.attribute.values.updatedAt', Date>
570
+ | RelationDateRules<'skus.attributes.attribute.values.removedAt', Date | null>
571
+ | RelationStringRules<'skus.attributes.attribute.values.createdBy', string | null>
572
+ | RelationStringRules<'skus.attributes.attribute.values.updatedBy', string | null>
573
+ | RelationStringRules<'skus.attributes.attribute.values.removedBy', string | null>
574
+ | RelationStringRules<'skus.attributes.attribute.values.name', string>
575
+ | UUIDRules<AttributeValue, 'attributeId'>
576
+ | RelationUUIDRules<'skus.attributes.attribute.values.skuAttributeValues.id', UUID>
577
+ | RelationDateRules<'skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
578
+ | RelationDateRules<'skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
579
+ | RelationDateRules<'skus.attributes.attribute.values.skuAttributeValues.removedAt', Date | null>
580
+ | RelationStringRules<'skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
581
+ | RelationStringRules<'skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
582
+ | RelationStringRules<'skus.attributes.attribute.values.skuAttributeValues.removedBy', string | null>
583
+ | RelationUUIDRules<'skus.attributes.attribute.skuAttributes.id', UUID>
584
+ | RelationDateRules<'skus.attributes.attribute.skuAttributes.createdAt', Date>
585
+ | RelationDateRules<'skus.attributes.attribute.skuAttributes.updatedAt', Date>
586
+ | RelationDateRules<'skus.attributes.attribute.skuAttributes.removedAt', Date | null>
587
+ | RelationStringRules<'skus.attributes.attribute.skuAttributes.createdBy', string | null>
588
+ | RelationStringRules<'skus.attributes.attribute.skuAttributes.updatedBy', string | null>
589
+ | RelationStringRules<'skus.attributes.attribute.skuAttributes.removedBy', string | null>
590
+ | RelationUUIDRules<'skus.attributes.value.id', UUID>
591
+ | RelationDateRules<'skus.attributes.value.createdAt', Date>
592
+ | RelationDateRules<'skus.attributes.value.updatedAt', Date>
593
+ | RelationDateRules<'skus.attributes.value.removedAt', Date | null>
594
+ | RelationStringRules<'skus.attributes.value.createdBy', string | null>
595
+ | RelationStringRules<'skus.attributes.value.updatedBy', string | null>
596
+ | RelationStringRules<'skus.attributes.value.removedBy', string | null>
597
+ | RelationStringRules<'skus.attributes.value.name', string>
598
+ | RelationUUIDRules<'skus.attributes.value.attribute.id', UUID>
599
+ | RelationDateRules<'skus.attributes.value.attribute.createdAt', Date>
600
+ | RelationDateRules<'skus.attributes.value.attribute.updatedAt', Date>
601
+ | RelationDateRules<'skus.attributes.value.attribute.removedAt', Date | null>
602
+ | RelationStringRules<'skus.attributes.value.attribute.createdBy', string | null>
603
+ | RelationStringRules<'skus.attributes.value.attribute.updatedBy', string | null>
604
+ | RelationStringRules<'skus.attributes.value.attribute.removedBy', string | null>
605
+ | RelationStringRules<'skus.attributes.value.attribute.name', string>
606
+ | RelationUUIDRules<'skus.attributes.value.attribute.values.id', UUID>
607
+ | RelationDateRules<'skus.attributes.value.attribute.values.createdAt', Date>
608
+ | RelationDateRules<'skus.attributes.value.attribute.values.updatedAt', Date>
609
+ | RelationDateRules<'skus.attributes.value.attribute.values.removedAt', Date | null>
610
+ | RelationStringRules<'skus.attributes.value.attribute.values.createdBy', string | null>
611
+ | RelationStringRules<'skus.attributes.value.attribute.values.updatedBy', string | null>
612
+ | RelationStringRules<'skus.attributes.value.attribute.values.removedBy', string | null>
613
+ | RelationStringRules<'skus.attributes.value.attribute.values.name', string>
614
+ | RelationUUIDRules<'skus.attributes.value.attribute.skuAttributes.id', UUID>
615
+ | RelationDateRules<'skus.attributes.value.attribute.skuAttributes.createdAt', Date>
616
+ | RelationDateRules<'skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
617
+ | RelationDateRules<'skus.attributes.value.attribute.skuAttributes.removedAt', Date | null>
618
+ | RelationStringRules<'skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
619
+ | RelationStringRules<'skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
620
+ | RelationStringRules<'skus.attributes.value.attribute.skuAttributes.removedBy', string | null>
621
+ | RelationUUIDRules<'skus.attributes.value.skuAttributeValues.id', UUID>
622
+ | RelationDateRules<'skus.attributes.value.skuAttributeValues.createdAt', Date>
623
+ | RelationDateRules<'skus.attributes.value.skuAttributeValues.updatedAt', Date>
624
+ | RelationDateRules<'skus.attributes.value.skuAttributeValues.removedAt', Date | null>
625
+ | RelationStringRules<'skus.attributes.value.skuAttributeValues.createdBy', string | null>
626
+ | RelationStringRules<'skus.attributes.value.skuAttributeValues.updatedBy', string | null>
627
+ | RelationStringRules<'skus.attributes.value.skuAttributeValues.removedBy', string | null>;
628
+
629
+ /**
630
+ * RuleGroupCustom
631
+ */
632
+ export declare type ProductRuleGroup = RuleGroupCustom<typeof Product,
633
+ |'id'
634
+ |'createdAt'
635
+ |'updatedAt'
636
+ |'removedAt'
637
+ |'createdBy'
638
+ |'updatedBy'
639
+ |'removedBy'
640
+ |'name'
641
+ |'description'
642
+ |'skus.id'
643
+ |'skus.createdAt'
644
+ |'skus.updatedAt'
645
+ |'skus.removedAt'
646
+ |'skus.createdBy'
647
+ |'skus.updatedBy'
648
+ |'skus.removedBy'
649
+ |'skus.code'
650
+ |'skus.price'
651
+ |'skus.stock'
652
+ |'productId'
653
+ |'skus.attributes.id'
654
+ |'skus.attributes.createdAt'
655
+ |'skus.attributes.updatedAt'
656
+ |'skus.attributes.removedAt'
657
+ |'skus.attributes.createdBy'
658
+ |'skus.attributes.updatedBy'
659
+ |'skus.attributes.removedBy'
660
+ |'skuId'
661
+ |'attributeId'
662
+ |'valueId'
663
+ |'skus.attributes.attribute.id'
664
+ |'skus.attributes.attribute.createdAt'
665
+ |'skus.attributes.attribute.updatedAt'
666
+ |'skus.attributes.attribute.removedAt'
667
+ |'skus.attributes.attribute.createdBy'
668
+ |'skus.attributes.attribute.updatedBy'
669
+ |'skus.attributes.attribute.removedBy'
670
+ |'skus.attributes.attribute.name'
671
+ |'skus.attributes.attribute.values.id'
672
+ |'skus.attributes.attribute.values.createdAt'
673
+ |'skus.attributes.attribute.values.updatedAt'
674
+ |'skus.attributes.attribute.values.removedAt'
675
+ |'skus.attributes.attribute.values.createdBy'
676
+ |'skus.attributes.attribute.values.updatedBy'
677
+ |'skus.attributes.attribute.values.removedBy'
678
+ |'skus.attributes.attribute.values.name'
679
+ |'attributeId'
680
+ |'skus.attributes.attribute.values.skuAttributeValues.id'
681
+ |'skus.attributes.attribute.values.skuAttributeValues.createdAt'
682
+ |'skus.attributes.attribute.values.skuAttributeValues.updatedAt'
683
+ |'skus.attributes.attribute.values.skuAttributeValues.removedAt'
684
+ |'skus.attributes.attribute.values.skuAttributeValues.createdBy'
685
+ |'skus.attributes.attribute.values.skuAttributeValues.updatedBy'
686
+ |'skus.attributes.attribute.values.skuAttributeValues.removedBy'
687
+ |'skuId'
688
+ |'attributeId'
689
+ |'valueId'
690
+ |'skus.attributes.attribute.skuAttributes.id'
691
+ |'skus.attributes.attribute.skuAttributes.createdAt'
692
+ |'skus.attributes.attribute.skuAttributes.updatedAt'
693
+ |'skus.attributes.attribute.skuAttributes.removedAt'
694
+ |'skus.attributes.attribute.skuAttributes.createdBy'
695
+ |'skus.attributes.attribute.skuAttributes.updatedBy'
696
+ |'skus.attributes.attribute.skuAttributes.removedBy'
697
+ |'skuId'
698
+ |'attributeId'
699
+ |'valueId'
700
+ |'skus.attributes.value.id'
701
+ |'skus.attributes.value.createdAt'
702
+ |'skus.attributes.value.updatedAt'
703
+ |'skus.attributes.value.removedAt'
704
+ |'skus.attributes.value.createdBy'
705
+ |'skus.attributes.value.updatedBy'
706
+ |'skus.attributes.value.removedBy'
707
+ |'skus.attributes.value.name'
708
+ |'attributeId'
709
+ |'skus.attributes.value.attribute.id'
710
+ |'skus.attributes.value.attribute.createdAt'
711
+ |'skus.attributes.value.attribute.updatedAt'
712
+ |'skus.attributes.value.attribute.removedAt'
713
+ |'skus.attributes.value.attribute.createdBy'
714
+ |'skus.attributes.value.attribute.updatedBy'
715
+ |'skus.attributes.value.attribute.removedBy'
716
+ |'skus.attributes.value.attribute.name'
717
+ |'skus.attributes.value.attribute.values.id'
718
+ |'skus.attributes.value.attribute.values.createdAt'
719
+ |'skus.attributes.value.attribute.values.updatedAt'
720
+ |'skus.attributes.value.attribute.values.removedAt'
721
+ |'skus.attributes.value.attribute.values.createdBy'
722
+ |'skus.attributes.value.attribute.values.updatedBy'
723
+ |'skus.attributes.value.attribute.values.removedBy'
724
+ |'skus.attributes.value.attribute.values.name'
725
+ |'attributeId'
726
+ |'skus.attributes.value.attribute.skuAttributes.id'
727
+ |'skus.attributes.value.attribute.skuAttributes.createdAt'
728
+ |'skus.attributes.value.attribute.skuAttributes.updatedAt'
729
+ |'skus.attributes.value.attribute.skuAttributes.removedAt'
730
+ |'skus.attributes.value.attribute.skuAttributes.createdBy'
731
+ |'skus.attributes.value.attribute.skuAttributes.updatedBy'
732
+ |'skus.attributes.value.attribute.skuAttributes.removedBy'
733
+ |'skuId'
734
+ |'attributeId'
735
+ |'valueId'
736
+ |'skus.attributes.value.skuAttributeValues.id'
737
+ |'skus.attributes.value.skuAttributeValues.createdAt'
738
+ |'skus.attributes.value.skuAttributeValues.updatedAt'
739
+ |'skus.attributes.value.skuAttributeValues.removedAt'
740
+ |'skus.attributes.value.skuAttributeValues.createdBy'
741
+ |'skus.attributes.value.skuAttributeValues.updatedBy'
742
+ |'skus.attributes.value.skuAttributeValues.removedBy'
743
+ |'skuId'
744
+ |'attributeId'
745
+ |'valueId',
746
+ ProductRule>;
747
+
748
+ /**
749
+ * OrderByField
750
+ */
751
+ declare type ProductOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name" | "description";
752
+
753
+ /**
754
+ * rule
755
+ */
756
+ declare type OrderItemRule = UUIDRules<OrderItem, 'id'>
757
+ | DateRules<OrderItem, 'createdAt'>
758
+ | DateRules<OrderItem, 'updatedAt'>
759
+ | DateRules<OrderItem, 'removedAt'>
760
+ | StringRules<OrderItem, 'createdBy'>
761
+ | StringRules<OrderItem, 'updatedBy'>
762
+ | StringRules<OrderItem, 'removedBy'>
763
+ | StringRules<OrderItem, 'productName'>
764
+ | NumberRules<OrderItem, 'quantity'>
765
+ | NumberRules<OrderItem, 'price'>
766
+ | UUIDRules<OrderItem, 'orderId'>
767
+ | RelationUUIDRules<'order.id', UUID>
768
+ | RelationDateRules<'order.createdAt', Date>
769
+ | RelationDateRules<'order.updatedAt', Date>
770
+ | RelationDateRules<'order.removedAt', Date | null>
771
+ | RelationStringRules<'order.createdBy', string | null>
772
+ | RelationStringRules<'order.updatedBy', string | null>
773
+ | RelationStringRules<'order.removedBy', string | null>
774
+ | RelationStringRules<'order.number', string>
775
+ | RelationNumberRules<'order.amount', number>
776
+ | UUIDRules<Order, 'ownerId'>
777
+ | RelationUUIDRules<'order.owner.id', UUID>
778
+ | RelationDateRules<'order.owner.createdAt', Date>
779
+ | RelationDateRules<'order.owner.updatedAt', Date>
780
+ | RelationDateRules<'order.owner.removedAt', Date | null>
781
+ | RelationStringRules<'order.owner.createdBy', string | null>
782
+ | RelationStringRules<'order.owner.updatedBy', string | null>
783
+ | RelationStringRules<'order.owner.removedBy', string | null>
784
+ | RelationStringRules<'order.owner.name', string>
785
+ | RelationBooleanRules<'order.owner.married', boolean>
786
+ | RelationNumberRules<'order.owner.age', number>
787
+ | RelationStringRules<'order.owner.gender', string | null>
788
+ | UUIDRules<User, 'idCardId'>
789
+ | RelationUUIDRules<'order.owner.idCard.id', UUID>
790
+ | RelationDateRules<'order.owner.idCard.createdAt', Date>
791
+ | RelationDateRules<'order.owner.idCard.updatedAt', Date>
792
+ | RelationDateRules<'order.owner.idCard.removedAt', Date | null>
793
+ | RelationStringRules<'order.owner.idCard.createdBy', string | null>
794
+ | RelationStringRules<'order.owner.idCard.updatedBy', string | null>
795
+ | RelationStringRules<'order.owner.idCard.removedBy', string | null>
796
+ | RelationStringRules<'order.owner.idCard.code', string>
797
+ | UUIDRules<IdCard, 'ownerId'>
798
+ | RelationUUIDRules<'order.owner.idCard.owner.id', UUID>
799
+ | RelationDateRules<'order.owner.idCard.owner.createdAt', Date>
800
+ | RelationDateRules<'order.owner.idCard.owner.updatedAt', Date>
801
+ | RelationDateRules<'order.owner.idCard.owner.removedAt', Date | null>
802
+ | RelationStringRules<'order.owner.idCard.owner.createdBy', string | null>
803
+ | RelationStringRules<'order.owner.idCard.owner.updatedBy', string | null>
804
+ | RelationStringRules<'order.owner.idCard.owner.removedBy', string | null>
805
+ | RelationStringRules<'order.owner.idCard.owner.name', string>
806
+ | RelationBooleanRules<'order.owner.idCard.owner.married', boolean>
807
+ | RelationNumberRules<'order.owner.idCard.owner.age', number>
808
+ | RelationStringRules<'order.owner.idCard.owner.gender', string | null>
809
+ | RelationUUIDRules<'order.owner.orders.id', UUID>
810
+ | RelationDateRules<'order.owner.orders.createdAt', Date>
811
+ | RelationDateRules<'order.owner.orders.updatedAt', Date>
812
+ | RelationDateRules<'order.owner.orders.removedAt', Date | null>
813
+ | RelationStringRules<'order.owner.orders.createdBy', string | null>
814
+ | RelationStringRules<'order.owner.orders.updatedBy', string | null>
815
+ | RelationStringRules<'order.owner.orders.removedBy', string | null>
816
+ | RelationStringRules<'order.owner.orders.number', string>
817
+ | RelationNumberRules<'order.owner.orders.amount', number>
818
+ | RelationUUIDRules<'categories.id', UUID>
819
+ | RelationDateRules<'categories.createdAt', Date>
820
+ | RelationDateRules<'categories.updatedAt', Date>
821
+ | RelationDateRules<'categories.removedAt', Date | null>
822
+ | RelationStringRules<'categories.createdBy', string | null>
823
+ | RelationStringRules<'categories.updatedBy', string | null>
824
+ | RelationStringRules<'categories.removedBy', string | null>
825
+ | RelationStringRules<'categories.name', string>;
826
+
827
+ /**
828
+ * RuleGroupCustom
829
+ */
830
+ export declare type OrderItemRuleGroup = RuleGroupCustom<typeof OrderItem,
831
+ |'id'
832
+ |'createdAt'
833
+ |'updatedAt'
834
+ |'removedAt'
835
+ |'createdBy'
836
+ |'updatedBy'
837
+ |'removedBy'
838
+ |'productName'
839
+ |'quantity'
840
+ |'price'
841
+ |'orderId'
842
+ |'order.id'
843
+ |'order.createdAt'
844
+ |'order.updatedAt'
845
+ |'order.removedAt'
846
+ |'order.createdBy'
847
+ |'order.updatedBy'
848
+ |'order.removedBy'
849
+ |'order.number'
850
+ |'order.amount'
851
+ |'ownerId'
852
+ |'order.owner.id'
853
+ |'order.owner.createdAt'
854
+ |'order.owner.updatedAt'
855
+ |'order.owner.removedAt'
856
+ |'order.owner.createdBy'
857
+ |'order.owner.updatedBy'
858
+ |'order.owner.removedBy'
859
+ |'order.owner.name'
860
+ |'order.owner.married'
861
+ |'order.owner.age'
862
+ |'order.owner.gender'
863
+ |'idCardId'
864
+ |'order.owner.idCard.id'
865
+ |'order.owner.idCard.createdAt'
866
+ |'order.owner.idCard.updatedAt'
867
+ |'order.owner.idCard.removedAt'
868
+ |'order.owner.idCard.createdBy'
869
+ |'order.owner.idCard.updatedBy'
870
+ |'order.owner.idCard.removedBy'
871
+ |'order.owner.idCard.code'
872
+ |'ownerId'
873
+ |'order.owner.idCard.owner.id'
874
+ |'order.owner.idCard.owner.createdAt'
875
+ |'order.owner.idCard.owner.updatedAt'
876
+ |'order.owner.idCard.owner.removedAt'
877
+ |'order.owner.idCard.owner.createdBy'
878
+ |'order.owner.idCard.owner.updatedBy'
879
+ |'order.owner.idCard.owner.removedBy'
880
+ |'order.owner.idCard.owner.name'
881
+ |'order.owner.idCard.owner.married'
882
+ |'order.owner.idCard.owner.age'
883
+ |'order.owner.idCard.owner.gender'
884
+ |'idCardId'
885
+ |'order.owner.orders.id'
886
+ |'order.owner.orders.createdAt'
887
+ |'order.owner.orders.updatedAt'
888
+ |'order.owner.orders.removedAt'
889
+ |'order.owner.orders.createdBy'
890
+ |'order.owner.orders.updatedBy'
891
+ |'order.owner.orders.removedBy'
892
+ |'order.owner.orders.number'
893
+ |'order.owner.orders.amount'
894
+ |'ownerId'
895
+ |'categories.id'
896
+ |'categories.createdAt'
897
+ |'categories.updatedAt'
898
+ |'categories.removedAt'
899
+ |'categories.createdBy'
900
+ |'categories.updatedBy'
901
+ |'categories.removedBy'
902
+ |'categories.name',
903
+ OrderItemRule>;
904
+
905
+ /**
906
+ * OrderByField
907
+ */
908
+ declare type OrderItemOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "productName" | "quantity" | "price";
909
+
910
+ /**
911
+ * rule
912
+ */
913
+ declare type OrderRule = UUIDRules<Order, 'id'>
914
+ | DateRules<Order, 'createdAt'>
915
+ | DateRules<Order, 'updatedAt'>
916
+ | DateRules<Order, 'removedAt'>
917
+ | StringRules<Order, 'createdBy'>
918
+ | StringRules<Order, 'updatedBy'>
919
+ | StringRules<Order, 'removedBy'>
920
+ | StringRules<Order, 'number'>
921
+ | NumberRules<Order, 'amount'>
922
+ | UUIDRules<Order, 'ownerId'>
923
+ | RelationUUIDRules<'owner.id', UUID>
924
+ | RelationDateRules<'owner.createdAt', Date>
925
+ | RelationDateRules<'owner.updatedAt', Date>
926
+ | RelationDateRules<'owner.removedAt', Date | null>
927
+ | RelationStringRules<'owner.createdBy', string | null>
928
+ | RelationStringRules<'owner.updatedBy', string | null>
929
+ | RelationStringRules<'owner.removedBy', string | null>
930
+ | RelationStringRules<'owner.name', string>
931
+ | RelationBooleanRules<'owner.married', boolean>
932
+ | RelationNumberRules<'owner.age', number>
933
+ | RelationStringRules<'owner.gender', string | null>
934
+ | UUIDRules<User, 'idCardId'>
935
+ | RelationUUIDRules<'owner.idCard.id', UUID>
936
+ | RelationDateRules<'owner.idCard.createdAt', Date>
937
+ | RelationDateRules<'owner.idCard.updatedAt', Date>
938
+ | RelationDateRules<'owner.idCard.removedAt', Date | null>
939
+ | RelationStringRules<'owner.idCard.createdBy', string | null>
940
+ | RelationStringRules<'owner.idCard.updatedBy', string | null>
941
+ | RelationStringRules<'owner.idCard.removedBy', string | null>
942
+ | RelationStringRules<'owner.idCard.code', string>
943
+ | UUIDRules<IdCard, 'ownerId'>
944
+ | RelationUUIDRules<'owner.idCard.owner.id', UUID>
945
+ | RelationDateRules<'owner.idCard.owner.createdAt', Date>
946
+ | RelationDateRules<'owner.idCard.owner.updatedAt', Date>
947
+ | RelationDateRules<'owner.idCard.owner.removedAt', Date | null>
948
+ | RelationStringRules<'owner.idCard.owner.createdBy', string | null>
949
+ | RelationStringRules<'owner.idCard.owner.updatedBy', string | null>
950
+ | RelationStringRules<'owner.idCard.owner.removedBy', string | null>
951
+ | RelationStringRules<'owner.idCard.owner.name', string>
952
+ | RelationBooleanRules<'owner.idCard.owner.married', boolean>
953
+ | RelationNumberRules<'owner.idCard.owner.age', number>
954
+ | RelationStringRules<'owner.idCard.owner.gender', string | null>
955
+ | RelationUUIDRules<'items.id', UUID>
956
+ | RelationDateRules<'items.createdAt', Date>
957
+ | RelationDateRules<'items.updatedAt', Date>
958
+ | RelationDateRules<'items.removedAt', Date | null>
959
+ | RelationStringRules<'items.createdBy', string | null>
960
+ | RelationStringRules<'items.updatedBy', string | null>
961
+ | RelationStringRules<'items.removedBy', string | null>
962
+ | RelationStringRules<'items.productName', string>
963
+ | RelationNumberRules<'items.quantity', number>
964
+ | RelationNumberRules<'items.price', number>
965
+ | UUIDRules<OrderItem, 'orderId'>
966
+ | RelationUUIDRules<'items.categories.id', UUID>
967
+ | RelationDateRules<'items.categories.createdAt', Date>
968
+ | RelationDateRules<'items.categories.updatedAt', Date>
969
+ | RelationDateRules<'items.categories.removedAt', Date | null>
970
+ | RelationStringRules<'items.categories.createdBy', string | null>
971
+ | RelationStringRules<'items.categories.updatedBy', string | null>
972
+ | RelationStringRules<'items.categories.removedBy', string | null>
973
+ | RelationStringRules<'items.categories.name', string>;
974
+
975
+ /**
976
+ * RuleGroupCustom
977
+ */
978
+ export declare type OrderRuleGroup = RuleGroupCustom<typeof Order,
979
+ |'id'
980
+ |'createdAt'
981
+ |'updatedAt'
982
+ |'removedAt'
983
+ |'createdBy'
984
+ |'updatedBy'
985
+ |'removedBy'
986
+ |'number'
987
+ |'amount'
988
+ |'ownerId'
989
+ |'owner.id'
990
+ |'owner.createdAt'
991
+ |'owner.updatedAt'
992
+ |'owner.removedAt'
993
+ |'owner.createdBy'
994
+ |'owner.updatedBy'
995
+ |'owner.removedBy'
996
+ |'owner.name'
997
+ |'owner.married'
998
+ |'owner.age'
999
+ |'owner.gender'
1000
+ |'idCardId'
1001
+ |'owner.idCard.id'
1002
+ |'owner.idCard.createdAt'
1003
+ |'owner.idCard.updatedAt'
1004
+ |'owner.idCard.removedAt'
1005
+ |'owner.idCard.createdBy'
1006
+ |'owner.idCard.updatedBy'
1007
+ |'owner.idCard.removedBy'
1008
+ |'owner.idCard.code'
1009
+ |'ownerId'
1010
+ |'owner.idCard.owner.id'
1011
+ |'owner.idCard.owner.createdAt'
1012
+ |'owner.idCard.owner.updatedAt'
1013
+ |'owner.idCard.owner.removedAt'
1014
+ |'owner.idCard.owner.createdBy'
1015
+ |'owner.idCard.owner.updatedBy'
1016
+ |'owner.idCard.owner.removedBy'
1017
+ |'owner.idCard.owner.name'
1018
+ |'owner.idCard.owner.married'
1019
+ |'owner.idCard.owner.age'
1020
+ |'owner.idCard.owner.gender'
1021
+ |'idCardId'
1022
+ |'items.id'
1023
+ |'items.createdAt'
1024
+ |'items.updatedAt'
1025
+ |'items.removedAt'
1026
+ |'items.createdBy'
1027
+ |'items.updatedBy'
1028
+ |'items.removedBy'
1029
+ |'items.productName'
1030
+ |'items.quantity'
1031
+ |'items.price'
1032
+ |'orderId'
1033
+ |'items.categories.id'
1034
+ |'items.categories.createdAt'
1035
+ |'items.categories.updatedAt'
1036
+ |'items.categories.removedAt'
1037
+ |'items.categories.createdBy'
1038
+ |'items.categories.updatedBy'
1039
+ |'items.categories.removedBy'
1040
+ |'items.categories.name',
1041
+ OrderRule>;
1042
+
1043
+ /**
1044
+ * OrderByField
1045
+ */
1046
+ declare type OrderOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "number" | "amount";
1047
+
1048
+ /**
1049
+ * rule
1050
+ */
1051
+ declare type IdCardRule = UUIDRules<IdCard, 'id'>
1052
+ | DateRules<IdCard, 'createdAt'>
1053
+ | DateRules<IdCard, 'updatedAt'>
1054
+ | DateRules<IdCard, 'removedAt'>
1055
+ | StringRules<IdCard, 'createdBy'>
1056
+ | StringRules<IdCard, 'updatedBy'>
1057
+ | StringRules<IdCard, 'removedBy'>
1058
+ | StringRules<IdCard, 'code'>
1059
+ | UUIDRules<IdCard, 'ownerId'>
1060
+ | RelationUUIDRules<'owner.id', UUID>
1061
+ | RelationDateRules<'owner.createdAt', Date>
1062
+ | RelationDateRules<'owner.updatedAt', Date>
1063
+ | RelationDateRules<'owner.removedAt', Date | null>
1064
+ | RelationStringRules<'owner.createdBy', string | null>
1065
+ | RelationStringRules<'owner.updatedBy', string | null>
1066
+ | RelationStringRules<'owner.removedBy', string | null>
1067
+ | RelationStringRules<'owner.name', string>
1068
+ | RelationBooleanRules<'owner.married', boolean>
1069
+ | RelationNumberRules<'owner.age', number>
1070
+ | RelationStringRules<'owner.gender', string | null>
1071
+ | UUIDRules<User, 'idCardId'>
1072
+ | RelationUUIDRules<'owner.orders.id', UUID>
1073
+ | RelationDateRules<'owner.orders.createdAt', Date>
1074
+ | RelationDateRules<'owner.orders.updatedAt', Date>
1075
+ | RelationDateRules<'owner.orders.removedAt', Date | null>
1076
+ | RelationStringRules<'owner.orders.createdBy', string | null>
1077
+ | RelationStringRules<'owner.orders.updatedBy', string | null>
1078
+ | RelationStringRules<'owner.orders.removedBy', string | null>
1079
+ | RelationStringRules<'owner.orders.number', string>
1080
+ | RelationNumberRules<'owner.orders.amount', number>
1081
+ | UUIDRules<Order, 'ownerId'>
1082
+ | RelationUUIDRules<'owner.orders.items.id', UUID>
1083
+ | RelationDateRules<'owner.orders.items.createdAt', Date>
1084
+ | RelationDateRules<'owner.orders.items.updatedAt', Date>
1085
+ | RelationDateRules<'owner.orders.items.removedAt', Date | null>
1086
+ | RelationStringRules<'owner.orders.items.createdBy', string | null>
1087
+ | RelationStringRules<'owner.orders.items.updatedBy', string | null>
1088
+ | RelationStringRules<'owner.orders.items.removedBy', string | null>
1089
+ | RelationStringRules<'owner.orders.items.productName', string>
1090
+ | RelationNumberRules<'owner.orders.items.quantity', number>
1091
+ | RelationNumberRules<'owner.orders.items.price', number>
1092
+ | UUIDRules<OrderItem, 'orderId'>
1093
+ | RelationUUIDRules<'owner.orders.items.categories.id', UUID>
1094
+ | RelationDateRules<'owner.orders.items.categories.createdAt', Date>
1095
+ | RelationDateRules<'owner.orders.items.categories.updatedAt', Date>
1096
+ | RelationDateRules<'owner.orders.items.categories.removedAt', Date | null>
1097
+ | RelationStringRules<'owner.orders.items.categories.createdBy', string | null>
1098
+ | RelationStringRules<'owner.orders.items.categories.updatedBy', string | null>
1099
+ | RelationStringRules<'owner.orders.items.categories.removedBy', string | null>
1100
+ | RelationStringRules<'owner.orders.items.categories.name', string>;
1101
+
1102
+ /**
1103
+ * RuleGroupCustom
1104
+ */
1105
+ export declare type IdCardRuleGroup = RuleGroupCustom<typeof IdCard,
1106
+ |'id'
1107
+ |'createdAt'
1108
+ |'updatedAt'
1109
+ |'removedAt'
1110
+ |'createdBy'
1111
+ |'updatedBy'
1112
+ |'removedBy'
1113
+ |'code'
1114
+ |'ownerId'
1115
+ |'owner.id'
1116
+ |'owner.createdAt'
1117
+ |'owner.updatedAt'
1118
+ |'owner.removedAt'
1119
+ |'owner.createdBy'
1120
+ |'owner.updatedBy'
1121
+ |'owner.removedBy'
1122
+ |'owner.name'
1123
+ |'owner.married'
1124
+ |'owner.age'
1125
+ |'owner.gender'
1126
+ |'idCardId'
1127
+ |'owner.orders.id'
1128
+ |'owner.orders.createdAt'
1129
+ |'owner.orders.updatedAt'
1130
+ |'owner.orders.removedAt'
1131
+ |'owner.orders.createdBy'
1132
+ |'owner.orders.updatedBy'
1133
+ |'owner.orders.removedBy'
1134
+ |'owner.orders.number'
1135
+ |'owner.orders.amount'
1136
+ |'ownerId'
1137
+ |'owner.orders.items.id'
1138
+ |'owner.orders.items.createdAt'
1139
+ |'owner.orders.items.updatedAt'
1140
+ |'owner.orders.items.removedAt'
1141
+ |'owner.orders.items.createdBy'
1142
+ |'owner.orders.items.updatedBy'
1143
+ |'owner.orders.items.removedBy'
1144
+ |'owner.orders.items.productName'
1145
+ |'owner.orders.items.quantity'
1146
+ |'owner.orders.items.price'
1147
+ |'orderId'
1148
+ |'owner.orders.items.categories.id'
1149
+ |'owner.orders.items.categories.createdAt'
1150
+ |'owner.orders.items.categories.updatedAt'
1151
+ |'owner.orders.items.categories.removedAt'
1152
+ |'owner.orders.items.categories.createdBy'
1153
+ |'owner.orders.items.categories.updatedBy'
1154
+ |'owner.orders.items.categories.removedBy'
1155
+ |'owner.orders.items.categories.name',
1156
+ IdCardRule>;
1157
+
1158
+ /**
1159
+ * OrderByField
1160
+ */
1161
+ declare type IdCardOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "code";
1162
+
1163
+ /**
1164
+ * rule
1165
+ */
1166
+ declare type CategoryRule = UUIDRules<Category, 'id'>
1167
+ | DateRules<Category, 'createdAt'>
1168
+ | DateRules<Category, 'updatedAt'>
1169
+ | DateRules<Category, 'removedAt'>
1170
+ | StringRules<Category, 'createdBy'>
1171
+ | StringRules<Category, 'updatedBy'>
1172
+ | StringRules<Category, 'removedBy'>
1173
+ | StringRules<Category, 'name'>
1174
+ | RelationUUIDRules<'orderItems.id', UUID>
1175
+ | RelationDateRules<'orderItems.createdAt', Date>
1176
+ | RelationDateRules<'orderItems.updatedAt', Date>
1177
+ | RelationDateRules<'orderItems.removedAt', Date | null>
1178
+ | RelationStringRules<'orderItems.createdBy', string | null>
1179
+ | RelationStringRules<'orderItems.updatedBy', string | null>
1180
+ | RelationStringRules<'orderItems.removedBy', string | null>
1181
+ | RelationStringRules<'orderItems.productName', string>
1182
+ | RelationNumberRules<'orderItems.quantity', number>
1183
+ | RelationNumberRules<'orderItems.price', number>
1184
+ | UUIDRules<OrderItem, 'orderId'>
1185
+ | RelationUUIDRules<'orderItems.order.id', UUID>
1186
+ | RelationDateRules<'orderItems.order.createdAt', Date>
1187
+ | RelationDateRules<'orderItems.order.updatedAt', Date>
1188
+ | RelationDateRules<'orderItems.order.removedAt', Date | null>
1189
+ | RelationStringRules<'orderItems.order.createdBy', string | null>
1190
+ | RelationStringRules<'orderItems.order.updatedBy', string | null>
1191
+ | RelationStringRules<'orderItems.order.removedBy', string | null>
1192
+ | RelationStringRules<'orderItems.order.number', string>
1193
+ | RelationNumberRules<'orderItems.order.amount', number>
1194
+ | UUIDRules<Order, 'ownerId'>
1195
+ | RelationUUIDRules<'orderItems.order.owner.id', UUID>
1196
+ | RelationDateRules<'orderItems.order.owner.createdAt', Date>
1197
+ | RelationDateRules<'orderItems.order.owner.updatedAt', Date>
1198
+ | RelationDateRules<'orderItems.order.owner.removedAt', Date | null>
1199
+ | RelationStringRules<'orderItems.order.owner.createdBy', string | null>
1200
+ | RelationStringRules<'orderItems.order.owner.updatedBy', string | null>
1201
+ | RelationStringRules<'orderItems.order.owner.removedBy', string | null>
1202
+ | RelationStringRules<'orderItems.order.owner.name', string>
1203
+ | RelationBooleanRules<'orderItems.order.owner.married', boolean>
1204
+ | RelationNumberRules<'orderItems.order.owner.age', number>
1205
+ | RelationStringRules<'orderItems.order.owner.gender', string | null>
1206
+ | UUIDRules<User, 'idCardId'>
1207
+ | RelationUUIDRules<'orderItems.order.owner.idCard.id', UUID>
1208
+ | RelationDateRules<'orderItems.order.owner.idCard.createdAt', Date>
1209
+ | RelationDateRules<'orderItems.order.owner.idCard.updatedAt', Date>
1210
+ | RelationDateRules<'orderItems.order.owner.idCard.removedAt', Date | null>
1211
+ | RelationStringRules<'orderItems.order.owner.idCard.createdBy', string | null>
1212
+ | RelationStringRules<'orderItems.order.owner.idCard.updatedBy', string | null>
1213
+ | RelationStringRules<'orderItems.order.owner.idCard.removedBy', string | null>
1214
+ | RelationStringRules<'orderItems.order.owner.idCard.code', string>
1215
+ | UUIDRules<IdCard, 'ownerId'>
1216
+ | RelationUUIDRules<'orderItems.order.owner.idCard.owner.id', UUID>
1217
+ | RelationDateRules<'orderItems.order.owner.idCard.owner.createdAt', Date>
1218
+ | RelationDateRules<'orderItems.order.owner.idCard.owner.updatedAt', Date>
1219
+ | RelationDateRules<'orderItems.order.owner.idCard.owner.removedAt', Date | null>
1220
+ | RelationStringRules<'orderItems.order.owner.idCard.owner.createdBy', string | null>
1221
+ | RelationStringRules<'orderItems.order.owner.idCard.owner.updatedBy', string | null>
1222
+ | RelationStringRules<'orderItems.order.owner.idCard.owner.removedBy', string | null>
1223
+ | RelationStringRules<'orderItems.order.owner.idCard.owner.name', string>
1224
+ | RelationBooleanRules<'orderItems.order.owner.idCard.owner.married', boolean>
1225
+ | RelationNumberRules<'orderItems.order.owner.idCard.owner.age', number>
1226
+ | RelationStringRules<'orderItems.order.owner.idCard.owner.gender', string | null>
1227
+ | RelationUUIDRules<'orderItems.order.owner.orders.id', UUID>
1228
+ | RelationDateRules<'orderItems.order.owner.orders.createdAt', Date>
1229
+ | RelationDateRules<'orderItems.order.owner.orders.updatedAt', Date>
1230
+ | RelationDateRules<'orderItems.order.owner.orders.removedAt', Date | null>
1231
+ | RelationStringRules<'orderItems.order.owner.orders.createdBy', string | null>
1232
+ | RelationStringRules<'orderItems.order.owner.orders.updatedBy', string | null>
1233
+ | RelationStringRules<'orderItems.order.owner.orders.removedBy', string | null>
1234
+ | RelationStringRules<'orderItems.order.owner.orders.number', string>
1235
+ | RelationNumberRules<'orderItems.order.owner.orders.amount', number>
1236
+ | RelationUUIDRules<'orderItems.order.items.id', UUID>
1237
+ | RelationDateRules<'orderItems.order.items.createdAt', Date>
1238
+ | RelationDateRules<'orderItems.order.items.updatedAt', Date>
1239
+ | RelationDateRules<'orderItems.order.items.removedAt', Date | null>
1240
+ | RelationStringRules<'orderItems.order.items.createdBy', string | null>
1241
+ | RelationStringRules<'orderItems.order.items.updatedBy', string | null>
1242
+ | RelationStringRules<'orderItems.order.items.removedBy', string | null>
1243
+ | RelationStringRules<'orderItems.order.items.productName', string>
1244
+ | RelationNumberRules<'orderItems.order.items.quantity', number>
1245
+ | RelationNumberRules<'orderItems.order.items.price', number>;
1246
+
1247
+ /**
1248
+ * RuleGroupCustom
1249
+ */
1250
+ export declare type CategoryRuleGroup = RuleGroupCustom<typeof Category,
1251
+ |'id'
1252
+ |'createdAt'
1253
+ |'updatedAt'
1254
+ |'removedAt'
1255
+ |'createdBy'
1256
+ |'updatedBy'
1257
+ |'removedBy'
1258
+ |'name'
1259
+ |'orderItems.id'
1260
+ |'orderItems.createdAt'
1261
+ |'orderItems.updatedAt'
1262
+ |'orderItems.removedAt'
1263
+ |'orderItems.createdBy'
1264
+ |'orderItems.updatedBy'
1265
+ |'orderItems.removedBy'
1266
+ |'orderItems.productName'
1267
+ |'orderItems.quantity'
1268
+ |'orderItems.price'
1269
+ |'orderId'
1270
+ |'orderItems.order.id'
1271
+ |'orderItems.order.createdAt'
1272
+ |'orderItems.order.updatedAt'
1273
+ |'orderItems.order.removedAt'
1274
+ |'orderItems.order.createdBy'
1275
+ |'orderItems.order.updatedBy'
1276
+ |'orderItems.order.removedBy'
1277
+ |'orderItems.order.number'
1278
+ |'orderItems.order.amount'
1279
+ |'ownerId'
1280
+ |'orderItems.order.owner.id'
1281
+ |'orderItems.order.owner.createdAt'
1282
+ |'orderItems.order.owner.updatedAt'
1283
+ |'orderItems.order.owner.removedAt'
1284
+ |'orderItems.order.owner.createdBy'
1285
+ |'orderItems.order.owner.updatedBy'
1286
+ |'orderItems.order.owner.removedBy'
1287
+ |'orderItems.order.owner.name'
1288
+ |'orderItems.order.owner.married'
1289
+ |'orderItems.order.owner.age'
1290
+ |'orderItems.order.owner.gender'
1291
+ |'idCardId'
1292
+ |'orderItems.order.owner.idCard.id'
1293
+ |'orderItems.order.owner.idCard.createdAt'
1294
+ |'orderItems.order.owner.idCard.updatedAt'
1295
+ |'orderItems.order.owner.idCard.removedAt'
1296
+ |'orderItems.order.owner.idCard.createdBy'
1297
+ |'orderItems.order.owner.idCard.updatedBy'
1298
+ |'orderItems.order.owner.idCard.removedBy'
1299
+ |'orderItems.order.owner.idCard.code'
1300
+ |'ownerId'
1301
+ |'orderItems.order.owner.idCard.owner.id'
1302
+ |'orderItems.order.owner.idCard.owner.createdAt'
1303
+ |'orderItems.order.owner.idCard.owner.updatedAt'
1304
+ |'orderItems.order.owner.idCard.owner.removedAt'
1305
+ |'orderItems.order.owner.idCard.owner.createdBy'
1306
+ |'orderItems.order.owner.idCard.owner.updatedBy'
1307
+ |'orderItems.order.owner.idCard.owner.removedBy'
1308
+ |'orderItems.order.owner.idCard.owner.name'
1309
+ |'orderItems.order.owner.idCard.owner.married'
1310
+ |'orderItems.order.owner.idCard.owner.age'
1311
+ |'orderItems.order.owner.idCard.owner.gender'
1312
+ |'idCardId'
1313
+ |'orderItems.order.owner.orders.id'
1314
+ |'orderItems.order.owner.orders.createdAt'
1315
+ |'orderItems.order.owner.orders.updatedAt'
1316
+ |'orderItems.order.owner.orders.removedAt'
1317
+ |'orderItems.order.owner.orders.createdBy'
1318
+ |'orderItems.order.owner.orders.updatedBy'
1319
+ |'orderItems.order.owner.orders.removedBy'
1320
+ |'orderItems.order.owner.orders.number'
1321
+ |'orderItems.order.owner.orders.amount'
1322
+ |'ownerId'
1323
+ |'orderItems.order.items.id'
1324
+ |'orderItems.order.items.createdAt'
1325
+ |'orderItems.order.items.updatedAt'
1326
+ |'orderItems.order.items.removedAt'
1327
+ |'orderItems.order.items.createdBy'
1328
+ |'orderItems.order.items.updatedBy'
1329
+ |'orderItems.order.items.removedBy'
1330
+ |'orderItems.order.items.productName'
1331
+ |'orderItems.order.items.quantity'
1332
+ |'orderItems.order.items.price'
1333
+ |'orderId',
1334
+ CategoryRule>;
1335
+
1336
+ /**
1337
+ * OrderByField
1338
+ */
1339
+ declare type CategoryOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
1340
+
1341
+ /**
1342
+ * rule
1343
+ */
1344
+ declare type AttributeValueRule = UUIDRules<AttributeValue, 'id'>
1345
+ | DateRules<AttributeValue, 'createdAt'>
1346
+ | DateRules<AttributeValue, 'updatedAt'>
1347
+ | DateRules<AttributeValue, 'removedAt'>
1348
+ | StringRules<AttributeValue, 'createdBy'>
1349
+ | StringRules<AttributeValue, 'updatedBy'>
1350
+ | StringRules<AttributeValue, 'removedBy'>
1351
+ | StringRules<AttributeValue, 'name'>
1352
+ | UUIDRules<AttributeValue, 'attributeId'>
1353
+ | RelationUUIDRules<'attribute.id', UUID>
1354
+ | RelationDateRules<'attribute.createdAt', Date>
1355
+ | RelationDateRules<'attribute.updatedAt', Date>
1356
+ | RelationDateRules<'attribute.removedAt', Date | null>
1357
+ | RelationStringRules<'attribute.createdBy', string | null>
1358
+ | RelationStringRules<'attribute.updatedBy', string | null>
1359
+ | RelationStringRules<'attribute.removedBy', string | null>
1360
+ | RelationStringRules<'attribute.name', string>
1361
+ | RelationUUIDRules<'attribute.skuAttributes.id', UUID>
1362
+ | RelationDateRules<'attribute.skuAttributes.createdAt', Date>
1363
+ | RelationDateRules<'attribute.skuAttributes.updatedAt', Date>
1364
+ | RelationDateRules<'attribute.skuAttributes.removedAt', Date | null>
1365
+ | RelationStringRules<'attribute.skuAttributes.createdBy', string | null>
1366
+ | RelationStringRules<'attribute.skuAttributes.updatedBy', string | null>
1367
+ | RelationStringRules<'attribute.skuAttributes.removedBy', string | null>
1368
+ | UUIDRules<SKUAttributes, 'skuId'>
1369
+ | UUIDRules<SKUAttributes, 'attributeId'>
1370
+ | UUIDRules<SKUAttributes, 'valueId'>
1371
+ | RelationUUIDRules<'attribute.skuAttributes.sku.id', UUID>
1372
+ | RelationDateRules<'attribute.skuAttributes.sku.createdAt', Date>
1373
+ | RelationDateRules<'attribute.skuAttributes.sku.updatedAt', Date>
1374
+ | RelationDateRules<'attribute.skuAttributes.sku.removedAt', Date | null>
1375
+ | RelationStringRules<'attribute.skuAttributes.sku.createdBy', string | null>
1376
+ | RelationStringRules<'attribute.skuAttributes.sku.updatedBy', string | null>
1377
+ | RelationStringRules<'attribute.skuAttributes.sku.removedBy', string | null>
1378
+ | RelationStringRules<'attribute.skuAttributes.sku.code', string>
1379
+ | RelationNumberRules<'attribute.skuAttributes.sku.price', any>
1380
+ | RelationNumberRules<'attribute.skuAttributes.sku.stock', any>
1381
+ | UUIDRules<SKU, 'productId'>
1382
+ | RelationUUIDRules<'attribute.skuAttributes.sku.attributes.id', UUID>
1383
+ | RelationDateRules<'attribute.skuAttributes.sku.attributes.createdAt', Date>
1384
+ | RelationDateRules<'attribute.skuAttributes.sku.attributes.updatedAt', Date>
1385
+ | RelationDateRules<'attribute.skuAttributes.sku.attributes.removedAt', Date | null>
1386
+ | RelationStringRules<'attribute.skuAttributes.sku.attributes.createdBy', string | null>
1387
+ | RelationStringRules<'attribute.skuAttributes.sku.attributes.updatedBy', string | null>
1388
+ | RelationStringRules<'attribute.skuAttributes.sku.attributes.removedBy', string | null>
1389
+ | RelationUUIDRules<'attribute.skuAttributes.sku.product.id', UUID>
1390
+ | RelationDateRules<'attribute.skuAttributes.sku.product.createdAt', Date>
1391
+ | RelationDateRules<'attribute.skuAttributes.sku.product.updatedAt', Date>
1392
+ | RelationDateRules<'attribute.skuAttributes.sku.product.removedAt', Date | null>
1393
+ | RelationStringRules<'attribute.skuAttributes.sku.product.createdBy', string | null>
1394
+ | RelationStringRules<'attribute.skuAttributes.sku.product.updatedBy', string | null>
1395
+ | RelationStringRules<'attribute.skuAttributes.sku.product.removedBy', string | null>
1396
+ | RelationStringRules<'attribute.skuAttributes.sku.product.name', string>
1397
+ | RelationStringRules<'attribute.skuAttributes.sku.product.description', string | null>
1398
+ | RelationUUIDRules<'attribute.skuAttributes.sku.product.skus.id', UUID>
1399
+ | RelationDateRules<'attribute.skuAttributes.sku.product.skus.createdAt', Date>
1400
+ | RelationDateRules<'attribute.skuAttributes.sku.product.skus.updatedAt', Date>
1401
+ | RelationDateRules<'attribute.skuAttributes.sku.product.skus.removedAt', Date | null>
1402
+ | RelationStringRules<'attribute.skuAttributes.sku.product.skus.createdBy', string | null>
1403
+ | RelationStringRules<'attribute.skuAttributes.sku.product.skus.updatedBy', string | null>
1404
+ | RelationStringRules<'attribute.skuAttributes.sku.product.skus.removedBy', string | null>
1405
+ | RelationStringRules<'attribute.skuAttributes.sku.product.skus.code', string>
1406
+ | RelationNumberRules<'attribute.skuAttributes.sku.product.skus.price', any>
1407
+ | RelationNumberRules<'attribute.skuAttributes.sku.product.skus.stock', any>
1408
+ | RelationUUIDRules<'skuAttributeValues.id', UUID>
1409
+ | RelationDateRules<'skuAttributeValues.createdAt', Date>
1410
+ | RelationDateRules<'skuAttributeValues.updatedAt', Date>
1411
+ | RelationDateRules<'skuAttributeValues.removedAt', Date | null>
1412
+ | RelationStringRules<'skuAttributeValues.createdBy', string | null>
1413
+ | RelationStringRules<'skuAttributeValues.updatedBy', string | null>
1414
+ | RelationStringRules<'skuAttributeValues.removedBy', string | null>
1415
+ | RelationUUIDRules<'skuAttributeValues.sku.id', UUID>
1416
+ | RelationDateRules<'skuAttributeValues.sku.createdAt', Date>
1417
+ | RelationDateRules<'skuAttributeValues.sku.updatedAt', Date>
1418
+ | RelationDateRules<'skuAttributeValues.sku.removedAt', Date | null>
1419
+ | RelationStringRules<'skuAttributeValues.sku.createdBy', string | null>
1420
+ | RelationStringRules<'skuAttributeValues.sku.updatedBy', string | null>
1421
+ | RelationStringRules<'skuAttributeValues.sku.removedBy', string | null>
1422
+ | RelationStringRules<'skuAttributeValues.sku.code', string>
1423
+ | RelationNumberRules<'skuAttributeValues.sku.price', any>
1424
+ | RelationNumberRules<'skuAttributeValues.sku.stock', any>
1425
+ | RelationUUIDRules<'skuAttributeValues.sku.attributes.id', UUID>
1426
+ | RelationDateRules<'skuAttributeValues.sku.attributes.createdAt', Date>
1427
+ | RelationDateRules<'skuAttributeValues.sku.attributes.updatedAt', Date>
1428
+ | RelationDateRules<'skuAttributeValues.sku.attributes.removedAt', Date | null>
1429
+ | RelationStringRules<'skuAttributeValues.sku.attributes.createdBy', string | null>
1430
+ | RelationStringRules<'skuAttributeValues.sku.attributes.updatedBy', string | null>
1431
+ | RelationStringRules<'skuAttributeValues.sku.attributes.removedBy', string | null>
1432
+ | RelationUUIDRules<'skuAttributeValues.sku.product.id', UUID>
1433
+ | RelationDateRules<'skuAttributeValues.sku.product.createdAt', Date>
1434
+ | RelationDateRules<'skuAttributeValues.sku.product.updatedAt', Date>
1435
+ | RelationDateRules<'skuAttributeValues.sku.product.removedAt', Date | null>
1436
+ | RelationStringRules<'skuAttributeValues.sku.product.createdBy', string | null>
1437
+ | RelationStringRules<'skuAttributeValues.sku.product.updatedBy', string | null>
1438
+ | RelationStringRules<'skuAttributeValues.sku.product.removedBy', string | null>
1439
+ | RelationStringRules<'skuAttributeValues.sku.product.name', string>
1440
+ | RelationStringRules<'skuAttributeValues.sku.product.description', string | null>
1441
+ | RelationUUIDRules<'skuAttributeValues.sku.product.skus.id', UUID>
1442
+ | RelationDateRules<'skuAttributeValues.sku.product.skus.createdAt', Date>
1443
+ | RelationDateRules<'skuAttributeValues.sku.product.skus.updatedAt', Date>
1444
+ | RelationDateRules<'skuAttributeValues.sku.product.skus.removedAt', Date | null>
1445
+ | RelationStringRules<'skuAttributeValues.sku.product.skus.createdBy', string | null>
1446
+ | RelationStringRules<'skuAttributeValues.sku.product.skus.updatedBy', string | null>
1447
+ | RelationStringRules<'skuAttributeValues.sku.product.skus.removedBy', string | null>
1448
+ | RelationStringRules<'skuAttributeValues.sku.product.skus.code', string>
1449
+ | RelationNumberRules<'skuAttributeValues.sku.product.skus.price', any>
1450
+ | RelationNumberRules<'skuAttributeValues.sku.product.skus.stock', any>
1451
+ | RelationUUIDRules<'skuAttributeValues.attribute.id', UUID>
1452
+ | RelationDateRules<'skuAttributeValues.attribute.createdAt', Date>
1453
+ | RelationDateRules<'skuAttributeValues.attribute.updatedAt', Date>
1454
+ | RelationDateRules<'skuAttributeValues.attribute.removedAt', Date | null>
1455
+ | RelationStringRules<'skuAttributeValues.attribute.createdBy', string | null>
1456
+ | RelationStringRules<'skuAttributeValues.attribute.updatedBy', string | null>
1457
+ | RelationStringRules<'skuAttributeValues.attribute.removedBy', string | null>
1458
+ | RelationStringRules<'skuAttributeValues.attribute.name', string>
1459
+ | RelationUUIDRules<'skuAttributeValues.attribute.skuAttributes.id', UUID>
1460
+ | RelationDateRules<'skuAttributeValues.attribute.skuAttributes.createdAt', Date>
1461
+ | RelationDateRules<'skuAttributeValues.attribute.skuAttributes.updatedAt', Date>
1462
+ | RelationDateRules<'skuAttributeValues.attribute.skuAttributes.removedAt', Date | null>
1463
+ | RelationStringRules<'skuAttributeValues.attribute.skuAttributes.createdBy', string | null>
1464
+ | RelationStringRules<'skuAttributeValues.attribute.skuAttributes.updatedBy', string | null>
1465
+ | RelationStringRules<'skuAttributeValues.attribute.skuAttributes.removedBy', string | null>;
1466
+
1467
+ /**
1468
+ * RuleGroupCustom
1469
+ */
1470
+ export declare type AttributeValueRuleGroup = RuleGroupCustom<typeof AttributeValue,
1471
+ |'id'
1472
+ |'createdAt'
1473
+ |'updatedAt'
1474
+ |'removedAt'
1475
+ |'createdBy'
1476
+ |'updatedBy'
1477
+ |'removedBy'
1478
+ |'name'
1479
+ |'attributeId'
1480
+ |'attribute.id'
1481
+ |'attribute.createdAt'
1482
+ |'attribute.updatedAt'
1483
+ |'attribute.removedAt'
1484
+ |'attribute.createdBy'
1485
+ |'attribute.updatedBy'
1486
+ |'attribute.removedBy'
1487
+ |'attribute.name'
1488
+ |'attribute.skuAttributes.id'
1489
+ |'attribute.skuAttributes.createdAt'
1490
+ |'attribute.skuAttributes.updatedAt'
1491
+ |'attribute.skuAttributes.removedAt'
1492
+ |'attribute.skuAttributes.createdBy'
1493
+ |'attribute.skuAttributes.updatedBy'
1494
+ |'attribute.skuAttributes.removedBy'
1495
+ |'skuId'
1496
+ |'attributeId'
1497
+ |'valueId'
1498
+ |'attribute.skuAttributes.sku.id'
1499
+ |'attribute.skuAttributes.sku.createdAt'
1500
+ |'attribute.skuAttributes.sku.updatedAt'
1501
+ |'attribute.skuAttributes.sku.removedAt'
1502
+ |'attribute.skuAttributes.sku.createdBy'
1503
+ |'attribute.skuAttributes.sku.updatedBy'
1504
+ |'attribute.skuAttributes.sku.removedBy'
1505
+ |'attribute.skuAttributes.sku.code'
1506
+ |'attribute.skuAttributes.sku.price'
1507
+ |'attribute.skuAttributes.sku.stock'
1508
+ |'productId'
1509
+ |'attribute.skuAttributes.sku.attributes.id'
1510
+ |'attribute.skuAttributes.sku.attributes.createdAt'
1511
+ |'attribute.skuAttributes.sku.attributes.updatedAt'
1512
+ |'attribute.skuAttributes.sku.attributes.removedAt'
1513
+ |'attribute.skuAttributes.sku.attributes.createdBy'
1514
+ |'attribute.skuAttributes.sku.attributes.updatedBy'
1515
+ |'attribute.skuAttributes.sku.attributes.removedBy'
1516
+ |'skuId'
1517
+ |'attributeId'
1518
+ |'valueId'
1519
+ |'attribute.skuAttributes.sku.product.id'
1520
+ |'attribute.skuAttributes.sku.product.createdAt'
1521
+ |'attribute.skuAttributes.sku.product.updatedAt'
1522
+ |'attribute.skuAttributes.sku.product.removedAt'
1523
+ |'attribute.skuAttributes.sku.product.createdBy'
1524
+ |'attribute.skuAttributes.sku.product.updatedBy'
1525
+ |'attribute.skuAttributes.sku.product.removedBy'
1526
+ |'attribute.skuAttributes.sku.product.name'
1527
+ |'attribute.skuAttributes.sku.product.description'
1528
+ |'attribute.skuAttributes.sku.product.skus.id'
1529
+ |'attribute.skuAttributes.sku.product.skus.createdAt'
1530
+ |'attribute.skuAttributes.sku.product.skus.updatedAt'
1531
+ |'attribute.skuAttributes.sku.product.skus.removedAt'
1532
+ |'attribute.skuAttributes.sku.product.skus.createdBy'
1533
+ |'attribute.skuAttributes.sku.product.skus.updatedBy'
1534
+ |'attribute.skuAttributes.sku.product.skus.removedBy'
1535
+ |'attribute.skuAttributes.sku.product.skus.code'
1536
+ |'attribute.skuAttributes.sku.product.skus.price'
1537
+ |'attribute.skuAttributes.sku.product.skus.stock'
1538
+ |'productId'
1539
+ |'skuAttributeValues.id'
1540
+ |'skuAttributeValues.createdAt'
1541
+ |'skuAttributeValues.updatedAt'
1542
+ |'skuAttributeValues.removedAt'
1543
+ |'skuAttributeValues.createdBy'
1544
+ |'skuAttributeValues.updatedBy'
1545
+ |'skuAttributeValues.removedBy'
1546
+ |'skuId'
1547
+ |'attributeId'
1548
+ |'valueId'
1549
+ |'skuAttributeValues.sku.id'
1550
+ |'skuAttributeValues.sku.createdAt'
1551
+ |'skuAttributeValues.sku.updatedAt'
1552
+ |'skuAttributeValues.sku.removedAt'
1553
+ |'skuAttributeValues.sku.createdBy'
1554
+ |'skuAttributeValues.sku.updatedBy'
1555
+ |'skuAttributeValues.sku.removedBy'
1556
+ |'skuAttributeValues.sku.code'
1557
+ |'skuAttributeValues.sku.price'
1558
+ |'skuAttributeValues.sku.stock'
1559
+ |'productId'
1560
+ |'skuAttributeValues.sku.attributes.id'
1561
+ |'skuAttributeValues.sku.attributes.createdAt'
1562
+ |'skuAttributeValues.sku.attributes.updatedAt'
1563
+ |'skuAttributeValues.sku.attributes.removedAt'
1564
+ |'skuAttributeValues.sku.attributes.createdBy'
1565
+ |'skuAttributeValues.sku.attributes.updatedBy'
1566
+ |'skuAttributeValues.sku.attributes.removedBy'
1567
+ |'skuId'
1568
+ |'attributeId'
1569
+ |'valueId'
1570
+ |'skuAttributeValues.sku.product.id'
1571
+ |'skuAttributeValues.sku.product.createdAt'
1572
+ |'skuAttributeValues.sku.product.updatedAt'
1573
+ |'skuAttributeValues.sku.product.removedAt'
1574
+ |'skuAttributeValues.sku.product.createdBy'
1575
+ |'skuAttributeValues.sku.product.updatedBy'
1576
+ |'skuAttributeValues.sku.product.removedBy'
1577
+ |'skuAttributeValues.sku.product.name'
1578
+ |'skuAttributeValues.sku.product.description'
1579
+ |'skuAttributeValues.sku.product.skus.id'
1580
+ |'skuAttributeValues.sku.product.skus.createdAt'
1581
+ |'skuAttributeValues.sku.product.skus.updatedAt'
1582
+ |'skuAttributeValues.sku.product.skus.removedAt'
1583
+ |'skuAttributeValues.sku.product.skus.createdBy'
1584
+ |'skuAttributeValues.sku.product.skus.updatedBy'
1585
+ |'skuAttributeValues.sku.product.skus.removedBy'
1586
+ |'skuAttributeValues.sku.product.skus.code'
1587
+ |'skuAttributeValues.sku.product.skus.price'
1588
+ |'skuAttributeValues.sku.product.skus.stock'
1589
+ |'productId'
1590
+ |'skuAttributeValues.attribute.id'
1591
+ |'skuAttributeValues.attribute.createdAt'
1592
+ |'skuAttributeValues.attribute.updatedAt'
1593
+ |'skuAttributeValues.attribute.removedAt'
1594
+ |'skuAttributeValues.attribute.createdBy'
1595
+ |'skuAttributeValues.attribute.updatedBy'
1596
+ |'skuAttributeValues.attribute.removedBy'
1597
+ |'skuAttributeValues.attribute.name'
1598
+ |'skuAttributeValues.attribute.skuAttributes.id'
1599
+ |'skuAttributeValues.attribute.skuAttributes.createdAt'
1600
+ |'skuAttributeValues.attribute.skuAttributes.updatedAt'
1601
+ |'skuAttributeValues.attribute.skuAttributes.removedAt'
1602
+ |'skuAttributeValues.attribute.skuAttributes.createdBy'
1603
+ |'skuAttributeValues.attribute.skuAttributes.updatedBy'
1604
+ |'skuAttributeValues.attribute.skuAttributes.removedBy'
1605
+ |'skuId'
1606
+ |'attributeId'
1607
+ |'valueId',
1608
+ AttributeValueRule>;
1609
+
1610
+ /**
1611
+ * OrderByField
1612
+ */
1613
+ declare type AttributeValueOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
1614
+
1615
+ /**
1616
+ * rule
1617
+ */
1618
+ declare type AttributeRule = UUIDRules<Attribute, 'id'>
1619
+ | DateRules<Attribute, 'createdAt'>
1620
+ | DateRules<Attribute, 'updatedAt'>
1621
+ | DateRules<Attribute, 'removedAt'>
1622
+ | StringRules<Attribute, 'createdBy'>
1623
+ | StringRules<Attribute, 'updatedBy'>
1624
+ | StringRules<Attribute, 'removedBy'>
1625
+ | StringRules<Attribute, 'name'>
1626
+ | RelationUUIDRules<'values.id', UUID>
1627
+ | RelationDateRules<'values.createdAt', Date>
1628
+ | RelationDateRules<'values.updatedAt', Date>
1629
+ | RelationDateRules<'values.removedAt', Date | null>
1630
+ | RelationStringRules<'values.createdBy', string | null>
1631
+ | RelationStringRules<'values.updatedBy', string | null>
1632
+ | RelationStringRules<'values.removedBy', string | null>
1633
+ | RelationStringRules<'values.name', string>
1634
+ | UUIDRules<AttributeValue, 'attributeId'>
1635
+ | RelationUUIDRules<'values.skuAttributeValues.id', UUID>
1636
+ | RelationDateRules<'values.skuAttributeValues.createdAt', Date>
1637
+ | RelationDateRules<'values.skuAttributeValues.updatedAt', Date>
1638
+ | RelationDateRules<'values.skuAttributeValues.removedAt', Date | null>
1639
+ | RelationStringRules<'values.skuAttributeValues.createdBy', string | null>
1640
+ | RelationStringRules<'values.skuAttributeValues.updatedBy', string | null>
1641
+ | RelationStringRules<'values.skuAttributeValues.removedBy', string | null>
1642
+ | UUIDRules<SKUAttributes, 'skuId'>
1643
+ | UUIDRules<SKUAttributes, 'attributeId'>
1644
+ | UUIDRules<SKUAttributes, 'valueId'>
1645
+ | RelationUUIDRules<'values.skuAttributeValues.sku.id', UUID>
1646
+ | RelationDateRules<'values.skuAttributeValues.sku.createdAt', Date>
1647
+ | RelationDateRules<'values.skuAttributeValues.sku.updatedAt', Date>
1648
+ | RelationDateRules<'values.skuAttributeValues.sku.removedAt', Date | null>
1649
+ | RelationStringRules<'values.skuAttributeValues.sku.createdBy', string | null>
1650
+ | RelationStringRules<'values.skuAttributeValues.sku.updatedBy', string | null>
1651
+ | RelationStringRules<'values.skuAttributeValues.sku.removedBy', string | null>
1652
+ | RelationStringRules<'values.skuAttributeValues.sku.code', string>
1653
+ | RelationNumberRules<'values.skuAttributeValues.sku.price', any>
1654
+ | RelationNumberRules<'values.skuAttributeValues.sku.stock', any>
1655
+ | UUIDRules<SKU, 'productId'>
1656
+ | RelationUUIDRules<'values.skuAttributeValues.sku.attributes.id', UUID>
1657
+ | RelationDateRules<'values.skuAttributeValues.sku.attributes.createdAt', Date>
1658
+ | RelationDateRules<'values.skuAttributeValues.sku.attributes.updatedAt', Date>
1659
+ | RelationDateRules<'values.skuAttributeValues.sku.attributes.removedAt', Date | null>
1660
+ | RelationStringRules<'values.skuAttributeValues.sku.attributes.createdBy', string | null>
1661
+ | RelationStringRules<'values.skuAttributeValues.sku.attributes.updatedBy', string | null>
1662
+ | RelationStringRules<'values.skuAttributeValues.sku.attributes.removedBy', string | null>
1663
+ | RelationUUIDRules<'values.skuAttributeValues.sku.product.id', UUID>
1664
+ | RelationDateRules<'values.skuAttributeValues.sku.product.createdAt', Date>
1665
+ | RelationDateRules<'values.skuAttributeValues.sku.product.updatedAt', Date>
1666
+ | RelationDateRules<'values.skuAttributeValues.sku.product.removedAt', Date | null>
1667
+ | RelationStringRules<'values.skuAttributeValues.sku.product.createdBy', string | null>
1668
+ | RelationStringRules<'values.skuAttributeValues.sku.product.updatedBy', string | null>
1669
+ | RelationStringRules<'values.skuAttributeValues.sku.product.removedBy', string | null>
1670
+ | RelationStringRules<'values.skuAttributeValues.sku.product.name', string>
1671
+ | RelationStringRules<'values.skuAttributeValues.sku.product.description', string | null>
1672
+ | RelationUUIDRules<'values.skuAttributeValues.sku.product.skus.id', UUID>
1673
+ | RelationDateRules<'values.skuAttributeValues.sku.product.skus.createdAt', Date>
1674
+ | RelationDateRules<'values.skuAttributeValues.sku.product.skus.updatedAt', Date>
1675
+ | RelationDateRules<'values.skuAttributeValues.sku.product.skus.removedAt', Date | null>
1676
+ | RelationStringRules<'values.skuAttributeValues.sku.product.skus.createdBy', string | null>
1677
+ | RelationStringRules<'values.skuAttributeValues.sku.product.skus.updatedBy', string | null>
1678
+ | RelationStringRules<'values.skuAttributeValues.sku.product.skus.removedBy', string | null>
1679
+ | RelationStringRules<'values.skuAttributeValues.sku.product.skus.code', string>
1680
+ | RelationNumberRules<'values.skuAttributeValues.sku.product.skus.price', any>
1681
+ | RelationNumberRules<'values.skuAttributeValues.sku.product.skus.stock', any>
1682
+ | RelationUUIDRules<'skuAttributes.id', UUID>
1683
+ | RelationDateRules<'skuAttributes.createdAt', Date>
1684
+ | RelationDateRules<'skuAttributes.updatedAt', Date>
1685
+ | RelationDateRules<'skuAttributes.removedAt', Date | null>
1686
+ | RelationStringRules<'skuAttributes.createdBy', string | null>
1687
+ | RelationStringRules<'skuAttributes.updatedBy', string | null>
1688
+ | RelationStringRules<'skuAttributes.removedBy', string | null>
1689
+ | RelationUUIDRules<'skuAttributes.sku.id', UUID>
1690
+ | RelationDateRules<'skuAttributes.sku.createdAt', Date>
1691
+ | RelationDateRules<'skuAttributes.sku.updatedAt', Date>
1692
+ | RelationDateRules<'skuAttributes.sku.removedAt', Date | null>
1693
+ | RelationStringRules<'skuAttributes.sku.createdBy', string | null>
1694
+ | RelationStringRules<'skuAttributes.sku.updatedBy', string | null>
1695
+ | RelationStringRules<'skuAttributes.sku.removedBy', string | null>
1696
+ | RelationStringRules<'skuAttributes.sku.code', string>
1697
+ | RelationNumberRules<'skuAttributes.sku.price', any>
1698
+ | RelationNumberRules<'skuAttributes.sku.stock', any>
1699
+ | RelationUUIDRules<'skuAttributes.sku.attributes.id', UUID>
1700
+ | RelationDateRules<'skuAttributes.sku.attributes.createdAt', Date>
1701
+ | RelationDateRules<'skuAttributes.sku.attributes.updatedAt', Date>
1702
+ | RelationDateRules<'skuAttributes.sku.attributes.removedAt', Date | null>
1703
+ | RelationStringRules<'skuAttributes.sku.attributes.createdBy', string | null>
1704
+ | RelationStringRules<'skuAttributes.sku.attributes.updatedBy', string | null>
1705
+ | RelationStringRules<'skuAttributes.sku.attributes.removedBy', string | null>
1706
+ | RelationUUIDRules<'skuAttributes.sku.product.id', UUID>
1707
+ | RelationDateRules<'skuAttributes.sku.product.createdAt', Date>
1708
+ | RelationDateRules<'skuAttributes.sku.product.updatedAt', Date>
1709
+ | RelationDateRules<'skuAttributes.sku.product.removedAt', Date | null>
1710
+ | RelationStringRules<'skuAttributes.sku.product.createdBy', string | null>
1711
+ | RelationStringRules<'skuAttributes.sku.product.updatedBy', string | null>
1712
+ | RelationStringRules<'skuAttributes.sku.product.removedBy', string | null>
1713
+ | RelationStringRules<'skuAttributes.sku.product.name', string>
1714
+ | RelationStringRules<'skuAttributes.sku.product.description', string | null>
1715
+ | RelationUUIDRules<'skuAttributes.sku.product.skus.id', UUID>
1716
+ | RelationDateRules<'skuAttributes.sku.product.skus.createdAt', Date>
1717
+ | RelationDateRules<'skuAttributes.sku.product.skus.updatedAt', Date>
1718
+ | RelationDateRules<'skuAttributes.sku.product.skus.removedAt', Date | null>
1719
+ | RelationStringRules<'skuAttributes.sku.product.skus.createdBy', string | null>
1720
+ | RelationStringRules<'skuAttributes.sku.product.skus.updatedBy', string | null>
1721
+ | RelationStringRules<'skuAttributes.sku.product.skus.removedBy', string | null>
1722
+ | RelationStringRules<'skuAttributes.sku.product.skus.code', string>
1723
+ | RelationNumberRules<'skuAttributes.sku.product.skus.price', any>
1724
+ | RelationNumberRules<'skuAttributes.sku.product.skus.stock', any>
1725
+ | RelationUUIDRules<'skuAttributes.value.id', UUID>
1726
+ | RelationDateRules<'skuAttributes.value.createdAt', Date>
1727
+ | RelationDateRules<'skuAttributes.value.updatedAt', Date>
1728
+ | RelationDateRules<'skuAttributes.value.removedAt', Date | null>
1729
+ | RelationStringRules<'skuAttributes.value.createdBy', string | null>
1730
+ | RelationStringRules<'skuAttributes.value.updatedBy', string | null>
1731
+ | RelationStringRules<'skuAttributes.value.removedBy', string | null>
1732
+ | RelationStringRules<'skuAttributes.value.name', string>
1733
+ | RelationUUIDRules<'skuAttributes.value.skuAttributeValues.id', UUID>
1734
+ | RelationDateRules<'skuAttributes.value.skuAttributeValues.createdAt', Date>
1735
+ | RelationDateRules<'skuAttributes.value.skuAttributeValues.updatedAt', Date>
1736
+ | RelationDateRules<'skuAttributes.value.skuAttributeValues.removedAt', Date | null>
1737
+ | RelationStringRules<'skuAttributes.value.skuAttributeValues.createdBy', string | null>
1738
+ | RelationStringRules<'skuAttributes.value.skuAttributeValues.updatedBy', string | null>
1739
+ | RelationStringRules<'skuAttributes.value.skuAttributeValues.removedBy', string | null>;
1740
+
1741
+ /**
1742
+ * RuleGroupCustom
1743
+ */
1744
+ export declare type AttributeRuleGroup = RuleGroupCustom<typeof Attribute,
1745
+ |'id'
1746
+ |'createdAt'
1747
+ |'updatedAt'
1748
+ |'removedAt'
1749
+ |'createdBy'
1750
+ |'updatedBy'
1751
+ |'removedBy'
1752
+ |'name'
1753
+ |'values.id'
1754
+ |'values.createdAt'
1755
+ |'values.updatedAt'
1756
+ |'values.removedAt'
1757
+ |'values.createdBy'
1758
+ |'values.updatedBy'
1759
+ |'values.removedBy'
1760
+ |'values.name'
1761
+ |'attributeId'
1762
+ |'values.skuAttributeValues.id'
1763
+ |'values.skuAttributeValues.createdAt'
1764
+ |'values.skuAttributeValues.updatedAt'
1765
+ |'values.skuAttributeValues.removedAt'
1766
+ |'values.skuAttributeValues.createdBy'
1767
+ |'values.skuAttributeValues.updatedBy'
1768
+ |'values.skuAttributeValues.removedBy'
1769
+ |'skuId'
1770
+ |'attributeId'
1771
+ |'valueId'
1772
+ |'values.skuAttributeValues.sku.id'
1773
+ |'values.skuAttributeValues.sku.createdAt'
1774
+ |'values.skuAttributeValues.sku.updatedAt'
1775
+ |'values.skuAttributeValues.sku.removedAt'
1776
+ |'values.skuAttributeValues.sku.createdBy'
1777
+ |'values.skuAttributeValues.sku.updatedBy'
1778
+ |'values.skuAttributeValues.sku.removedBy'
1779
+ |'values.skuAttributeValues.sku.code'
1780
+ |'values.skuAttributeValues.sku.price'
1781
+ |'values.skuAttributeValues.sku.stock'
1782
+ |'productId'
1783
+ |'values.skuAttributeValues.sku.attributes.id'
1784
+ |'values.skuAttributeValues.sku.attributes.createdAt'
1785
+ |'values.skuAttributeValues.sku.attributes.updatedAt'
1786
+ |'values.skuAttributeValues.sku.attributes.removedAt'
1787
+ |'values.skuAttributeValues.sku.attributes.createdBy'
1788
+ |'values.skuAttributeValues.sku.attributes.updatedBy'
1789
+ |'values.skuAttributeValues.sku.attributes.removedBy'
1790
+ |'skuId'
1791
+ |'attributeId'
1792
+ |'valueId'
1793
+ |'values.skuAttributeValues.sku.product.id'
1794
+ |'values.skuAttributeValues.sku.product.createdAt'
1795
+ |'values.skuAttributeValues.sku.product.updatedAt'
1796
+ |'values.skuAttributeValues.sku.product.removedAt'
1797
+ |'values.skuAttributeValues.sku.product.createdBy'
1798
+ |'values.skuAttributeValues.sku.product.updatedBy'
1799
+ |'values.skuAttributeValues.sku.product.removedBy'
1800
+ |'values.skuAttributeValues.sku.product.name'
1801
+ |'values.skuAttributeValues.sku.product.description'
1802
+ |'values.skuAttributeValues.sku.product.skus.id'
1803
+ |'values.skuAttributeValues.sku.product.skus.createdAt'
1804
+ |'values.skuAttributeValues.sku.product.skus.updatedAt'
1805
+ |'values.skuAttributeValues.sku.product.skus.removedAt'
1806
+ |'values.skuAttributeValues.sku.product.skus.createdBy'
1807
+ |'values.skuAttributeValues.sku.product.skus.updatedBy'
1808
+ |'values.skuAttributeValues.sku.product.skus.removedBy'
1809
+ |'values.skuAttributeValues.sku.product.skus.code'
1810
+ |'values.skuAttributeValues.sku.product.skus.price'
1811
+ |'values.skuAttributeValues.sku.product.skus.stock'
1812
+ |'productId'
1813
+ |'skuAttributes.id'
1814
+ |'skuAttributes.createdAt'
1815
+ |'skuAttributes.updatedAt'
1816
+ |'skuAttributes.removedAt'
1817
+ |'skuAttributes.createdBy'
1818
+ |'skuAttributes.updatedBy'
1819
+ |'skuAttributes.removedBy'
1820
+ |'skuId'
1821
+ |'attributeId'
1822
+ |'valueId'
1823
+ |'skuAttributes.sku.id'
1824
+ |'skuAttributes.sku.createdAt'
1825
+ |'skuAttributes.sku.updatedAt'
1826
+ |'skuAttributes.sku.removedAt'
1827
+ |'skuAttributes.sku.createdBy'
1828
+ |'skuAttributes.sku.updatedBy'
1829
+ |'skuAttributes.sku.removedBy'
1830
+ |'skuAttributes.sku.code'
1831
+ |'skuAttributes.sku.price'
1832
+ |'skuAttributes.sku.stock'
1833
+ |'productId'
1834
+ |'skuAttributes.sku.attributes.id'
1835
+ |'skuAttributes.sku.attributes.createdAt'
1836
+ |'skuAttributes.sku.attributes.updatedAt'
1837
+ |'skuAttributes.sku.attributes.removedAt'
1838
+ |'skuAttributes.sku.attributes.createdBy'
1839
+ |'skuAttributes.sku.attributes.updatedBy'
1840
+ |'skuAttributes.sku.attributes.removedBy'
1841
+ |'skuId'
1842
+ |'attributeId'
1843
+ |'valueId'
1844
+ |'skuAttributes.sku.product.id'
1845
+ |'skuAttributes.sku.product.createdAt'
1846
+ |'skuAttributes.sku.product.updatedAt'
1847
+ |'skuAttributes.sku.product.removedAt'
1848
+ |'skuAttributes.sku.product.createdBy'
1849
+ |'skuAttributes.sku.product.updatedBy'
1850
+ |'skuAttributes.sku.product.removedBy'
1851
+ |'skuAttributes.sku.product.name'
1852
+ |'skuAttributes.sku.product.description'
1853
+ |'skuAttributes.sku.product.skus.id'
1854
+ |'skuAttributes.sku.product.skus.createdAt'
1855
+ |'skuAttributes.sku.product.skus.updatedAt'
1856
+ |'skuAttributes.sku.product.skus.removedAt'
1857
+ |'skuAttributes.sku.product.skus.createdBy'
1858
+ |'skuAttributes.sku.product.skus.updatedBy'
1859
+ |'skuAttributes.sku.product.skus.removedBy'
1860
+ |'skuAttributes.sku.product.skus.code'
1861
+ |'skuAttributes.sku.product.skus.price'
1862
+ |'skuAttributes.sku.product.skus.stock'
1863
+ |'productId'
1864
+ |'skuAttributes.value.id'
1865
+ |'skuAttributes.value.createdAt'
1866
+ |'skuAttributes.value.updatedAt'
1867
+ |'skuAttributes.value.removedAt'
1868
+ |'skuAttributes.value.createdBy'
1869
+ |'skuAttributes.value.updatedBy'
1870
+ |'skuAttributes.value.removedBy'
1871
+ |'skuAttributes.value.name'
1872
+ |'attributeId'
1873
+ |'skuAttributes.value.skuAttributeValues.id'
1874
+ |'skuAttributes.value.skuAttributeValues.createdAt'
1875
+ |'skuAttributes.value.skuAttributeValues.updatedAt'
1876
+ |'skuAttributes.value.skuAttributeValues.removedAt'
1877
+ |'skuAttributes.value.skuAttributeValues.createdBy'
1878
+ |'skuAttributes.value.skuAttributeValues.updatedBy'
1879
+ |'skuAttributes.value.skuAttributeValues.removedBy'
1880
+ |'skuId'
1881
+ |'attributeId'
1882
+ |'valueId',
1883
+ AttributeRule>;
1884
+
1885
+ /**
1886
+ * OrderByField
1887
+ */
1888
+ declare type AttributeOrderByField = "id" | "createdAt" | "updatedAt" | "removedAt" | "createdBy" | "updatedBy" | "removedBy" | "name";
1889
+
1890
+ /**
1891
+ * rxdb
1892
+ */
1893
+ declare module "@aiao/rxdb" {
1894
+ /**
1895
+ * RxDB
1896
+ */
1897
+ interface RxDB {
1898
+ /**
1899
+ * 用户表
1900
+ */
1901
+ User: typeof User;
1902
+ /**
1903
+ * SKUAttributes
1904
+ */
1905
+ SKUAttributes: typeof SKUAttributes;
1906
+ /**
1907
+ * SKU
1908
+ */
1909
+ SKU: typeof SKU;
1910
+ /**
1911
+ * Product
1912
+ */
1913
+ Product: typeof Product;
1914
+ /**
1915
+ * 订单项目
1916
+ */
1917
+ OrderItem: typeof OrderItem;
1918
+ /**
1919
+ * 订单
1920
+ */
1921
+ Order: typeof Order;
1922
+ /**
1923
+ * 身份证
1924
+ */
1925
+ IdCard: typeof IdCard;
1926
+ /**
1927
+ * 产品分类
1928
+ */
1929
+ Category: typeof Category;
1930
+ /**
1931
+ * AttributeValue
1932
+ */
1933
+ AttributeValue: typeof AttributeValue;
1934
+ /**
1935
+ * Attribute
1936
+ */
1937
+ Attribute: typeof Attribute;
1938
+ }
1939
+ }
1940
+
1941
+ /**
1942
+ * 静态类型
1943
+ */
1944
+ export interface UserStaticTypes {
1945
+ /**
1946
+ * id 类型
1947
+ */
1948
+ idType: UUID;
1949
+ /**
1950
+ * 查询选项
1951
+ */
1952
+ getOptions: UUID;
1953
+ /**
1954
+ * 查询选项
1955
+ */
1956
+ findOneOrFailOptions: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>;
1957
+ /**
1958
+ * 查询选项
1959
+ */
1960
+ findOptions: FindOptions<typeof User,UserRuleGroup,UserOrderByField>;
1961
+ /**
1962
+ * 查询选项
1963
+ */
1964
+ findOneOptions: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>;
1965
+ /**
1966
+ * 查询选项
1967
+ */
1968
+ findAllOptions: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>;
1969
+ /**
1970
+ * 查询选项
1971
+ */
1972
+ countOptions: CountOptions<typeof User,UserRuleGroup>;
1973
+ }
1974
+
1975
+ /**
1976
+ * 初始化数据
1977
+ */
1978
+ export interface UserInitData {
1979
+ /**
1980
+ * 姓名
1981
+ */
1982
+ name?: string;
1983
+ /**
1984
+ * 已婚
1985
+ */
1986
+ married?: boolean;
1987
+ /**
1988
+ * 年龄
1989
+ */
1990
+ age?: number;
1991
+ /**
1992
+ * 性别
1993
+ * @default '男'
1994
+ */
1995
+ gender?: string | null;
1996
+ }
1997
+
1998
+ /**
1999
+ * 静态类型
2000
+ */
2001
+ export interface SKUAttributesStaticTypes {
2002
+ /**
2003
+ * id 类型
2004
+ */
2005
+ idType: UUID;
2006
+ /**
2007
+ * 查询选项
2008
+ */
2009
+ getOptions: UUID;
2010
+ /**
2011
+ * 查询选项
2012
+ */
2013
+ findOneOrFailOptions: FindOneOrFailOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
2014
+ /**
2015
+ * 查询选项
2016
+ */
2017
+ findOptions: FindOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
2018
+ /**
2019
+ * 查询选项
2020
+ */
2021
+ findOneOptions: FindOneOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
2022
+ /**
2023
+ * 查询选项
2024
+ */
2025
+ findAllOptions: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>;
2026
+ /**
2027
+ * 查询选项
2028
+ */
2029
+ countOptions: CountOptions<typeof SKUAttributes,SKUAttributesRuleGroup>;
2030
+ }
2031
+
2032
+ /**
2033
+ * 初始化数据
2034
+ */
2035
+ export interface SKUAttributesInitData {
2036
+ }
2037
+
2038
+ /**
2039
+ * 静态类型
2040
+ */
2041
+ export interface SKUStaticTypes {
2042
+ /**
2043
+ * id 类型
2044
+ */
2045
+ idType: UUID;
2046
+ /**
2047
+ * 查询选项
2048
+ */
2049
+ getOptions: UUID;
2050
+ /**
2051
+ * 查询选项
2052
+ */
2053
+ findOneOrFailOptions: FindOneOrFailOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
2054
+ /**
2055
+ * 查询选项
2056
+ */
2057
+ findOptions: FindOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
2058
+ /**
2059
+ * 查询选项
2060
+ */
2061
+ findOneOptions: FindOneOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
2062
+ /**
2063
+ * 查询选项
2064
+ */
2065
+ findAllOptions: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>;
2066
+ /**
2067
+ * 查询选项
2068
+ */
2069
+ countOptions: CountOptions<typeof SKU,SKURuleGroup>;
2070
+ }
2071
+
2072
+ /**
2073
+ * 初始化数据
2074
+ */
2075
+ export interface SKUInitData {
2076
+ /**
2077
+ * code
2078
+ */
2079
+ code?: string;
2080
+ /**
2081
+ * price
2082
+ */
2083
+ price?: any;
2084
+ /**
2085
+ * stock
2086
+ */
2087
+ stock?: any;
2088
+ }
2089
+
2090
+ /**
2091
+ * 静态类型
2092
+ */
2093
+ export interface ProductStaticTypes {
2094
+ /**
2095
+ * id 类型
2096
+ */
2097
+ idType: UUID;
2098
+ /**
2099
+ * 查询选项
2100
+ */
2101
+ getOptions: UUID;
2102
+ /**
2103
+ * 查询选项
2104
+ */
2105
+ findOneOrFailOptions: FindOneOrFailOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
2106
+ /**
2107
+ * 查询选项
2108
+ */
2109
+ findOptions: FindOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
2110
+ /**
2111
+ * 查询选项
2112
+ */
2113
+ findOneOptions: FindOneOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
2114
+ /**
2115
+ * 查询选项
2116
+ */
2117
+ findAllOptions: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>;
2118
+ /**
2119
+ * 查询选项
2120
+ */
2121
+ countOptions: CountOptions<typeof Product,ProductRuleGroup>;
2122
+ }
2123
+
2124
+ /**
2125
+ * 初始化数据
2126
+ */
2127
+ export interface ProductInitData {
2128
+ /**
2129
+ * name
2130
+ */
2131
+ name?: string;
2132
+ /**
2133
+ * description
2134
+ */
2135
+ description?: string | null;
2136
+ }
2137
+
2138
+ /**
2139
+ * 静态类型
2140
+ */
2141
+ export interface OrderItemStaticTypes {
2142
+ /**
2143
+ * id 类型
2144
+ */
2145
+ idType: UUID;
2146
+ /**
2147
+ * 查询选项
2148
+ */
2149
+ getOptions: UUID;
2150
+ /**
2151
+ * 查询选项
2152
+ */
2153
+ findOneOrFailOptions: FindOneOrFailOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
2154
+ /**
2155
+ * 查询选项
2156
+ */
2157
+ findOptions: FindOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
2158
+ /**
2159
+ * 查询选项
2160
+ */
2161
+ findOneOptions: FindOneOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
2162
+ /**
2163
+ * 查询选项
2164
+ */
2165
+ findAllOptions: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>;
2166
+ /**
2167
+ * 查询选项
2168
+ */
2169
+ countOptions: CountOptions<typeof OrderItem,OrderItemRuleGroup>;
2170
+ }
2171
+
2172
+ /**
2173
+ * 初始化数据
2174
+ */
2175
+ export interface OrderItemInitData {
2176
+ /**
2177
+ * 商品名称
2178
+ */
2179
+ productName?: string;
2180
+ /**
2181
+ * 数量
2182
+ */
2183
+ quantity?: number;
2184
+ /**
2185
+ * 单价
2186
+ */
2187
+ price?: number;
2188
+ }
2189
+
2190
+ /**
2191
+ * 静态类型
2192
+ */
2193
+ export interface OrderStaticTypes {
2194
+ /**
2195
+ * id 类型
2196
+ */
2197
+ idType: UUID;
2198
+ /**
2199
+ * 查询选项
2200
+ */
2201
+ getOptions: UUID;
2202
+ /**
2203
+ * 查询选项
2204
+ */
2205
+ findOneOrFailOptions: FindOneOrFailOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
2206
+ /**
2207
+ * 查询选项
2208
+ */
2209
+ findOptions: FindOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
2210
+ /**
2211
+ * 查询选项
2212
+ */
2213
+ findOneOptions: FindOneOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
2214
+ /**
2215
+ * 查询选项
2216
+ */
2217
+ findAllOptions: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>;
2218
+ /**
2219
+ * 查询选项
2220
+ */
2221
+ countOptions: CountOptions<typeof Order,OrderRuleGroup>;
2222
+ }
2223
+
2224
+ /**
2225
+ * 初始化数据
2226
+ */
2227
+ export interface OrderInitData {
2228
+ /**
2229
+ * 订单号
2230
+ */
2231
+ number?: string;
2232
+ /**
2233
+ * 订单总金额
2234
+ */
2235
+ amount?: number;
2236
+ }
2237
+
2238
+ /**
2239
+ * 静态类型
2240
+ */
2241
+ export interface IdCardStaticTypes {
2242
+ /**
2243
+ * id 类型
2244
+ */
2245
+ idType: UUID;
2246
+ /**
2247
+ * 查询选项
2248
+ */
2249
+ getOptions: UUID;
2250
+ /**
2251
+ * 查询选项
2252
+ */
2253
+ findOneOrFailOptions: FindOneOrFailOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
2254
+ /**
2255
+ * 查询选项
2256
+ */
2257
+ findOptions: FindOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
2258
+ /**
2259
+ * 查询选项
2260
+ */
2261
+ findOneOptions: FindOneOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
2262
+ /**
2263
+ * 查询选项
2264
+ */
2265
+ findAllOptions: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>;
2266
+ /**
2267
+ * 查询选项
2268
+ */
2269
+ countOptions: CountOptions<typeof IdCard,IdCardRuleGroup>;
2270
+ }
2271
+
2272
+ /**
2273
+ * 初始化数据
2274
+ */
2275
+ export interface IdCardInitData {
2276
+ /**
2277
+ * 身份证号码
2278
+ */
2279
+ code?: string;
2280
+ }
2281
+
2282
+ /**
2283
+ * 静态类型
2284
+ */
2285
+ export interface CategoryStaticTypes {
2286
+ /**
2287
+ * id 类型
2288
+ */
2289
+ idType: UUID;
2290
+ /**
2291
+ * 查询选项
2292
+ */
2293
+ getOptions: UUID;
2294
+ /**
2295
+ * 查询选项
2296
+ */
2297
+ findOneOrFailOptions: FindOneOrFailOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
2298
+ /**
2299
+ * 查询选项
2300
+ */
2301
+ findOptions: FindOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
2302
+ /**
2303
+ * 查询选项
2304
+ */
2305
+ findOneOptions: FindOneOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
2306
+ /**
2307
+ * 查询选项
2308
+ */
2309
+ findAllOptions: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>;
2310
+ /**
2311
+ * 查询选项
2312
+ */
2313
+ countOptions: CountOptions<typeof Category,CategoryRuleGroup>;
2314
+ }
2315
+
2316
+ /**
2317
+ * 初始化数据
2318
+ */
2319
+ export interface CategoryInitData {
2320
+ /**
2321
+ * 分类名称
2322
+ */
2323
+ name?: string;
2324
+ }
2325
+
2326
+ /**
2327
+ * 静态类型
2328
+ */
2329
+ export interface AttributeValueStaticTypes {
2330
+ /**
2331
+ * id 类型
2332
+ */
2333
+ idType: UUID;
2334
+ /**
2335
+ * 查询选项
2336
+ */
2337
+ getOptions: UUID;
2338
+ /**
2339
+ * 查询选项
2340
+ */
2341
+ findOneOrFailOptions: FindOneOrFailOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
2342
+ /**
2343
+ * 查询选项
2344
+ */
2345
+ findOptions: FindOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
2346
+ /**
2347
+ * 查询选项
2348
+ */
2349
+ findOneOptions: FindOneOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
2350
+ /**
2351
+ * 查询选项
2352
+ */
2353
+ findAllOptions: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>;
2354
+ /**
2355
+ * 查询选项
2356
+ */
2357
+ countOptions: CountOptions<typeof AttributeValue,AttributeValueRuleGroup>;
2358
+ }
2359
+
2360
+ /**
2361
+ * 初始化数据
2362
+ */
2363
+ export interface AttributeValueInitData {
2364
+ /**
2365
+ * name
2366
+ */
2367
+ name?: string;
2368
+ }
2369
+
2370
+ /**
2371
+ * 静态类型
2372
+ */
2373
+ export interface AttributeStaticTypes {
2374
+ /**
2375
+ * id 类型
2376
+ */
2377
+ idType: UUID;
2378
+ /**
2379
+ * 查询选项
2380
+ */
2381
+ getOptions: UUID;
2382
+ /**
2383
+ * 查询选项
2384
+ */
2385
+ findOneOrFailOptions: FindOneOrFailOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
2386
+ /**
2387
+ * 查询选项
2388
+ */
2389
+ findOptions: FindOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
2390
+ /**
2391
+ * 查询选项
2392
+ */
2393
+ findOneOptions: FindOneOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
2394
+ /**
2395
+ * 查询选项
2396
+ */
2397
+ findAllOptions: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>;
2398
+ /**
2399
+ * 查询选项
2400
+ */
2401
+ countOptions: CountOptions<typeof Attribute,AttributeRuleGroup>;
2402
+ }
2403
+
2404
+ /**
2405
+ * 初始化数据
2406
+ */
2407
+ export interface AttributeInitData {
2408
+ /**
2409
+ * name
2410
+ */
2411
+ name?: string;
2412
+ }
2413
+
2414
+ /**
2415
+ * 用户表
2416
+ */
2417
+ export declare class User extends EntityBase implements IEntity, IEntityStaticType {
2418
+ /**
2419
+ * idCard
2420
+ */
2421
+ idCard$: RelationEntityObservable<IdCard | null>;
2422
+ /**
2423
+ * idCard id
2424
+ */
2425
+ idCardId?: UUID;
2426
+ /**
2427
+ * orders
2428
+ */
2429
+ orders$: RelationEntitiesObservable<Order>;
2430
+ [ENTITY_STATIC_TYPES]: UserStaticTypes;
2431
+ /**
2432
+ * 年龄
2433
+ */
2434
+ age: number;
2435
+ /**
2436
+ * 性别
2437
+ * @default '男'
2438
+ */
2439
+ gender?: string | null;
2440
+ /**
2441
+ * 已婚
2442
+ */
2443
+ married: boolean;
2444
+ /**
2445
+ * 姓名
2446
+ */
2447
+ name: string;
2448
+ /**
2449
+ * 初始化数据
2450
+ * @param initData 初始化数据
2451
+ */
2452
+ constructor(initData?: UserInitData);
2453
+ /**
2454
+ * count 查询
2455
+ * @param options 查询选项
2456
+ */
2457
+ static count(options: CountOptions<typeof User,UserRuleGroup>): Observable<number>;
2458
+ /**
2459
+ * find 查询
2460
+ * @param options 查询选项
2461
+ */
2462
+ static find(options: FindOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
2463
+ /**
2464
+ * findAll 查询
2465
+ * @param options 查询选项
2466
+ */
2467
+ static findAll(options: FindAllOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User[]>;
2468
+ /**
2469
+ * findOne 查询
2470
+ * @param options 查询选项
2471
+ */
2472
+ static findOne(options: FindOneOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User | undefined>;
2473
+ /**
2474
+ * findOneOrFail 查询
2475
+ * @param options 查询选项
2476
+ */
2477
+ static findOneOrFail(options: FindOneOrFailOptions<typeof User,UserRuleGroup,UserOrderByField>): Observable<User>;
2478
+ /**
2479
+ * get 查询
2480
+ * @param options 查询选项
2481
+ */
2482
+ static get(options: UUID): Observable<User>;
2483
+ /**
2484
+ * 删除
2485
+ */
2486
+ remove(): Promise<User>;
2487
+ /**
2488
+ * 重置数据
2489
+ */
2490
+ reset(): void;
2491
+ /**
2492
+ * 保存
2493
+ */
2494
+ save(): Promise<User>;
2495
+ }
2496
+
2497
+ /**
2498
+ * SKUAttributes
2499
+ */
2500
+ export declare class SKUAttributes extends EntityBase implements IEntity, IEntityStaticType {
2501
+ /**
2502
+ * attribute
2503
+ */
2504
+ attribute$: RelationEntityObservable<Attribute>;
2505
+ /**
2506
+ * attribute id
2507
+ */
2508
+ attributeId: UUID;
2509
+ /**
2510
+ * sku
2511
+ */
2512
+ sku$: RelationEntityObservable<SKU>;
2513
+ /**
2514
+ * sku id
2515
+ */
2516
+ skuId: UUID;
2517
+ /**
2518
+ * value
2519
+ */
2520
+ value$: RelationEntityObservable<AttributeValue>;
2521
+ /**
2522
+ * value id
2523
+ */
2524
+ valueId: UUID;
2525
+ [ENTITY_STATIC_TYPES]: SKUAttributesStaticTypes;
2526
+ /**
2527
+ * 初始化数据
2528
+ * @param initData 初始化数据
2529
+ */
2530
+ constructor(initData?: SKUAttributesInitData);
2531
+ /**
2532
+ * count 查询
2533
+ * @param options 查询选项
2534
+ */
2535
+ static count(options: CountOptions<typeof SKUAttributes,SKUAttributesRuleGroup>): Observable<number>;
2536
+ /**
2537
+ * find 查询
2538
+ * @param options 查询选项
2539
+ */
2540
+ static find(options: FindOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
2541
+ /**
2542
+ * findAll 查询
2543
+ * @param options 查询选项
2544
+ */
2545
+ static findAll(options: FindAllOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes[]>;
2546
+ /**
2547
+ * findOne 查询
2548
+ * @param options 查询选项
2549
+ */
2550
+ static findOne(options: FindOneOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes | undefined>;
2551
+ /**
2552
+ * findOneOrFail 查询
2553
+ * @param options 查询选项
2554
+ */
2555
+ static findOneOrFail(options: FindOneOrFailOptions<typeof SKUAttributes,SKUAttributesRuleGroup,SKUAttributesOrderByField>): Observable<SKUAttributes>;
2556
+ /**
2557
+ * get 查询
2558
+ * @param options 查询选项
2559
+ */
2560
+ static get(options: UUID): Observable<SKUAttributes>;
2561
+ /**
2562
+ * 删除
2563
+ */
2564
+ remove(): Promise<SKUAttributes>;
2565
+ /**
2566
+ * 重置数据
2567
+ */
2568
+ reset(): void;
2569
+ /**
2570
+ * 保存
2571
+ */
2572
+ save(): Promise<SKUAttributes>;
2573
+ }
2574
+
2575
+ /**
2576
+ * SKU
2577
+ */
2578
+ export declare class SKU extends EntityBase implements IEntity, IEntityStaticType {
2579
+ /**
2580
+ * attributes
2581
+ */
2582
+ attributes$: RelationEntitiesObservable<SKUAttributes>;
2583
+ /**
2584
+ * product
2585
+ */
2586
+ product$: RelationEntityObservable<Product>;
2587
+ /**
2588
+ * product id
2589
+ */
2590
+ productId: UUID;
2591
+ [ENTITY_STATIC_TYPES]: SKUStaticTypes;
2592
+ /**
2593
+ * code
2594
+ */
2595
+ code: string;
2596
+ /**
2597
+ * price
2598
+ */
2599
+ price: any;
2600
+ /**
2601
+ * stock
2602
+ */
2603
+ stock: any;
2604
+ /**
2605
+ * 初始化数据
2606
+ * @param initData 初始化数据
2607
+ */
2608
+ constructor(initData?: SKUInitData);
2609
+ /**
2610
+ * count 查询
2611
+ * @param options 查询选项
2612
+ */
2613
+ static count(options: CountOptions<typeof SKU,SKURuleGroup>): Observable<number>;
2614
+ /**
2615
+ * find 查询
2616
+ * @param options 查询选项
2617
+ */
2618
+ static find(options: FindOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
2619
+ /**
2620
+ * findAll 查询
2621
+ * @param options 查询选项
2622
+ */
2623
+ static findAll(options: FindAllOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU[]>;
2624
+ /**
2625
+ * findOne 查询
2626
+ * @param options 查询选项
2627
+ */
2628
+ static findOne(options: FindOneOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU | undefined>;
2629
+ /**
2630
+ * findOneOrFail 查询
2631
+ * @param options 查询选项
2632
+ */
2633
+ static findOneOrFail(options: FindOneOrFailOptions<typeof SKU,SKURuleGroup,SKUOrderByField>): Observable<SKU>;
2634
+ /**
2635
+ * get 查询
2636
+ * @param options 查询选项
2637
+ */
2638
+ static get(options: UUID): Observable<SKU>;
2639
+ /**
2640
+ * 删除
2641
+ */
2642
+ remove(): Promise<SKU>;
2643
+ /**
2644
+ * 重置数据
2645
+ */
2646
+ reset(): void;
2647
+ /**
2648
+ * 保存
2649
+ */
2650
+ save(): Promise<SKU>;
2651
+ }
2652
+
2653
+ /**
2654
+ * Product
2655
+ */
2656
+ export declare class Product extends EntityBase implements IEntity, IEntityStaticType {
2657
+ /**
2658
+ * skus
2659
+ */
2660
+ skus$: RelationEntitiesObservable<SKU>;
2661
+ [ENTITY_STATIC_TYPES]: ProductStaticTypes;
2662
+ /**
2663
+ * description
2664
+ */
2665
+ description?: string | null;
2666
+ /**
2667
+ * name
2668
+ */
2669
+ name: string;
2670
+ /**
2671
+ * 初始化数据
2672
+ * @param initData 初始化数据
2673
+ */
2674
+ constructor(initData?: ProductInitData);
2675
+ /**
2676
+ * count 查询
2677
+ * @param options 查询选项
2678
+ */
2679
+ static count(options: CountOptions<typeof Product,ProductRuleGroup>): Observable<number>;
2680
+ /**
2681
+ * find 查询
2682
+ * @param options 查询选项
2683
+ */
2684
+ static find(options: FindOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
2685
+ /**
2686
+ * findAll 查询
2687
+ * @param options 查询选项
2688
+ */
2689
+ static findAll(options: FindAllOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product[]>;
2690
+ /**
2691
+ * findOne 查询
2692
+ * @param options 查询选项
2693
+ */
2694
+ static findOne(options: FindOneOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product | undefined>;
2695
+ /**
2696
+ * findOneOrFail 查询
2697
+ * @param options 查询选项
2698
+ */
2699
+ static findOneOrFail(options: FindOneOrFailOptions<typeof Product,ProductRuleGroup,ProductOrderByField>): Observable<Product>;
2700
+ /**
2701
+ * get 查询
2702
+ * @param options 查询选项
2703
+ */
2704
+ static get(options: UUID): Observable<Product>;
2705
+ /**
2706
+ * 删除
2707
+ */
2708
+ remove(): Promise<Product>;
2709
+ /**
2710
+ * 重置数据
2711
+ */
2712
+ reset(): void;
2713
+ /**
2714
+ * 保存
2715
+ */
2716
+ save(): Promise<Product>;
2717
+ }
2718
+
2719
+ /**
2720
+ * 订单项目
2721
+ */
2722
+ export declare class OrderItem extends EntityBase implements IEntity, IEntityStaticType {
2723
+ /**
2724
+ * categories
2725
+ */
2726
+ categories$: RelationEntitiesObservable<Category>;
2727
+ /**
2728
+ * order
2729
+ */
2730
+ order$: RelationEntityObservable<Order>;
2731
+ /**
2732
+ * order id
2733
+ */
2734
+ orderId: UUID;
2735
+ [ENTITY_STATIC_TYPES]: OrderItemStaticTypes;
2736
+ /**
2737
+ * 单价
2738
+ */
2739
+ price: number;
2740
+ /**
2741
+ * 商品名称
2742
+ */
2743
+ productName: string;
2744
+ /**
2745
+ * 数量
2746
+ */
2747
+ quantity: number;
2748
+ /**
2749
+ * 初始化数据
2750
+ * @param initData 初始化数据
2751
+ */
2752
+ constructor(initData?: OrderItemInitData);
2753
+ /**
2754
+ * count 查询
2755
+ * @param options 查询选项
2756
+ */
2757
+ static count(options: CountOptions<typeof OrderItem,OrderItemRuleGroup>): Observable<number>;
2758
+ /**
2759
+ * find 查询
2760
+ * @param options 查询选项
2761
+ */
2762
+ static find(options: FindOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
2763
+ /**
2764
+ * findAll 查询
2765
+ * @param options 查询选项
2766
+ */
2767
+ static findAll(options: FindAllOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem[]>;
2768
+ /**
2769
+ * findOne 查询
2770
+ * @param options 查询选项
2771
+ */
2772
+ static findOne(options: FindOneOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem | undefined>;
2773
+ /**
2774
+ * findOneOrFail 查询
2775
+ * @param options 查询选项
2776
+ */
2777
+ static findOneOrFail(options: FindOneOrFailOptions<typeof OrderItem,OrderItemRuleGroup,OrderItemOrderByField>): Observable<OrderItem>;
2778
+ /**
2779
+ * get 查询
2780
+ * @param options 查询选项
2781
+ */
2782
+ static get(options: UUID): Observable<OrderItem>;
2783
+ /**
2784
+ * 删除
2785
+ */
2786
+ remove(): Promise<OrderItem>;
2787
+ /**
2788
+ * 重置数据
2789
+ */
2790
+ reset(): void;
2791
+ /**
2792
+ * 保存
2793
+ */
2794
+ save(): Promise<OrderItem>;
2795
+ }
2796
+
2797
+ /**
2798
+ * 订单
2799
+ */
2800
+ export declare class Order extends EntityBase implements IEntity, IEntityStaticType {
2801
+ /**
2802
+ * items
2803
+ */
2804
+ items$: RelationEntitiesObservable<OrderItem>;
2805
+ /**
2806
+ * owner
2807
+ */
2808
+ owner$: RelationEntityObservable<User>;
2809
+ /**
2810
+ * owner id
2811
+ */
2812
+ ownerId: UUID;
2813
+ [ENTITY_STATIC_TYPES]: OrderStaticTypes;
2814
+ /**
2815
+ * 订单总金额
2816
+ */
2817
+ amount: number;
2818
+ /**
2819
+ * 订单号
2820
+ */
2821
+ number: string;
2822
+ /**
2823
+ * 初始化数据
2824
+ * @param initData 初始化数据
2825
+ */
2826
+ constructor(initData?: OrderInitData);
2827
+ /**
2828
+ * count 查询
2829
+ * @param options 查询选项
2830
+ */
2831
+ static count(options: CountOptions<typeof Order,OrderRuleGroup>): Observable<number>;
2832
+ /**
2833
+ * find 查询
2834
+ * @param options 查询选项
2835
+ */
2836
+ static find(options: FindOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
2837
+ /**
2838
+ * findAll 查询
2839
+ * @param options 查询选项
2840
+ */
2841
+ static findAll(options: FindAllOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order[]>;
2842
+ /**
2843
+ * findOne 查询
2844
+ * @param options 查询选项
2845
+ */
2846
+ static findOne(options: FindOneOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order | undefined>;
2847
+ /**
2848
+ * findOneOrFail 查询
2849
+ * @param options 查询选项
2850
+ */
2851
+ static findOneOrFail(options: FindOneOrFailOptions<typeof Order,OrderRuleGroup,OrderOrderByField>): Observable<Order>;
2852
+ /**
2853
+ * get 查询
2854
+ * @param options 查询选项
2855
+ */
2856
+ static get(options: UUID): Observable<Order>;
2857
+ /**
2858
+ * 删除
2859
+ */
2860
+ remove(): Promise<Order>;
2861
+ /**
2862
+ * 重置数据
2863
+ */
2864
+ reset(): void;
2865
+ /**
2866
+ * 保存
2867
+ */
2868
+ save(): Promise<Order>;
2869
+ }
2870
+
2871
+ /**
2872
+ * 身份证
2873
+ */
2874
+ export declare class IdCard extends EntityBase implements IEntity, IEntityStaticType {
2875
+ /**
2876
+ * owner
2877
+ */
2878
+ owner$: RelationEntityObservable<User>;
2879
+ /**
2880
+ * owner id
2881
+ */
2882
+ ownerId: UUID;
2883
+ [ENTITY_STATIC_TYPES]: IdCardStaticTypes;
2884
+ /**
2885
+ * 身份证号码
2886
+ */
2887
+ code: string;
2888
+ /**
2889
+ * 初始化数据
2890
+ * @param initData 初始化数据
2891
+ */
2892
+ constructor(initData?: IdCardInitData);
2893
+ /**
2894
+ * count 查询
2895
+ * @param options 查询选项
2896
+ */
2897
+ static count(options: CountOptions<typeof IdCard,IdCardRuleGroup>): Observable<number>;
2898
+ /**
2899
+ * find 查询
2900
+ * @param options 查询选项
2901
+ */
2902
+ static find(options: FindOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
2903
+ /**
2904
+ * findAll 查询
2905
+ * @param options 查询选项
2906
+ */
2907
+ static findAll(options: FindAllOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard[]>;
2908
+ /**
2909
+ * findOne 查询
2910
+ * @param options 查询选项
2911
+ */
2912
+ static findOne(options: FindOneOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard | undefined>;
2913
+ /**
2914
+ * findOneOrFail 查询
2915
+ * @param options 查询选项
2916
+ */
2917
+ static findOneOrFail(options: FindOneOrFailOptions<typeof IdCard,IdCardRuleGroup,IdCardOrderByField>): Observable<IdCard>;
2918
+ /**
2919
+ * get 查询
2920
+ * @param options 查询选项
2921
+ */
2922
+ static get(options: UUID): Observable<IdCard>;
2923
+ /**
2924
+ * 删除
2925
+ */
2926
+ remove(): Promise<IdCard>;
2927
+ /**
2928
+ * 重置数据
2929
+ */
2930
+ reset(): void;
2931
+ /**
2932
+ * 保存
2933
+ */
2934
+ save(): Promise<IdCard>;
2935
+ }
2936
+
2937
+ /**
2938
+ * 产品分类
2939
+ */
2940
+ export declare class Category extends EntityBase implements IEntity, IEntityStaticType {
2941
+ /**
2942
+ * orderItems
2943
+ */
2944
+ orderItems$: RelationEntitiesObservable<OrderItem>;
2945
+ [ENTITY_STATIC_TYPES]: CategoryStaticTypes;
2946
+ /**
2947
+ * 分类名称
2948
+ */
2949
+ name: string;
2950
+ /**
2951
+ * 初始化数据
2952
+ * @param initData 初始化数据
2953
+ */
2954
+ constructor(initData?: CategoryInitData);
2955
+ /**
2956
+ * count 查询
2957
+ * @param options 查询选项
2958
+ */
2959
+ static count(options: CountOptions<typeof Category,CategoryRuleGroup>): Observable<number>;
2960
+ /**
2961
+ * find 查询
2962
+ * @param options 查询选项
2963
+ */
2964
+ static find(options: FindOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
2965
+ /**
2966
+ * findAll 查询
2967
+ * @param options 查询选项
2968
+ */
2969
+ static findAll(options: FindAllOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category[]>;
2970
+ /**
2971
+ * findOne 查询
2972
+ * @param options 查询选项
2973
+ */
2974
+ static findOne(options: FindOneOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category | undefined>;
2975
+ /**
2976
+ * findOneOrFail 查询
2977
+ * @param options 查询选项
2978
+ */
2979
+ static findOneOrFail(options: FindOneOrFailOptions<typeof Category,CategoryRuleGroup,CategoryOrderByField>): Observable<Category>;
2980
+ /**
2981
+ * get 查询
2982
+ * @param options 查询选项
2983
+ */
2984
+ static get(options: UUID): Observable<Category>;
2985
+ /**
2986
+ * 删除
2987
+ */
2988
+ remove(): Promise<Category>;
2989
+ /**
2990
+ * 重置数据
2991
+ */
2992
+ reset(): void;
2993
+ /**
2994
+ * 保存
2995
+ */
2996
+ save(): Promise<Category>;
2997
+ }
2998
+
2999
+ /**
3000
+ * AttributeValue
3001
+ */
3002
+ export declare class AttributeValue extends EntityBase implements IEntity, IEntityStaticType {
3003
+ /**
3004
+ * attribute
3005
+ */
3006
+ attribute$: RelationEntityObservable<Attribute>;
3007
+ /**
3008
+ * attribute id
3009
+ */
3010
+ attributeId: UUID;
3011
+ /**
3012
+ * skuAttributeValues
3013
+ */
3014
+ skuAttributeValues$: RelationEntitiesObservable<SKUAttributes>;
3015
+ [ENTITY_STATIC_TYPES]: AttributeValueStaticTypes;
3016
+ /**
3017
+ * name
3018
+ */
3019
+ name: string;
3020
+ /**
3021
+ * 初始化数据
3022
+ * @param initData 初始化数据
3023
+ */
3024
+ constructor(initData?: AttributeValueInitData);
3025
+ /**
3026
+ * count 查询
3027
+ * @param options 查询选项
3028
+ */
3029
+ static count(options: CountOptions<typeof AttributeValue,AttributeValueRuleGroup>): Observable<number>;
3030
+ /**
3031
+ * find 查询
3032
+ * @param options 查询选项
3033
+ */
3034
+ static find(options: FindOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
3035
+ /**
3036
+ * findAll 查询
3037
+ * @param options 查询选项
3038
+ */
3039
+ static findAll(options: FindAllOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue[]>;
3040
+ /**
3041
+ * findOne 查询
3042
+ * @param options 查询选项
3043
+ */
3044
+ static findOne(options: FindOneOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue | undefined>;
3045
+ /**
3046
+ * findOneOrFail 查询
3047
+ * @param options 查询选项
3048
+ */
3049
+ static findOneOrFail(options: FindOneOrFailOptions<typeof AttributeValue,AttributeValueRuleGroup,AttributeValueOrderByField>): Observable<AttributeValue>;
3050
+ /**
3051
+ * get 查询
3052
+ * @param options 查询选项
3053
+ */
3054
+ static get(options: UUID): Observable<AttributeValue>;
3055
+ /**
3056
+ * 删除
3057
+ */
3058
+ remove(): Promise<AttributeValue>;
3059
+ /**
3060
+ * 重置数据
3061
+ */
3062
+ reset(): void;
3063
+ /**
3064
+ * 保存
3065
+ */
3066
+ save(): Promise<AttributeValue>;
3067
+ }
3068
+
3069
+ /**
3070
+ * Attribute
3071
+ */
3072
+ export declare class Attribute extends EntityBase implements IEntity, IEntityStaticType {
3073
+ /**
3074
+ * skuAttributes
3075
+ */
3076
+ skuAttributes$: RelationEntitiesObservable<SKUAttributes>;
3077
+ /**
3078
+ * values
3079
+ */
3080
+ values$: RelationEntitiesObservable<AttributeValue>;
3081
+ [ENTITY_STATIC_TYPES]: AttributeStaticTypes;
3082
+ /**
3083
+ * name
3084
+ */
3085
+ name: string;
3086
+ /**
3087
+ * 初始化数据
3088
+ * @param initData 初始化数据
3089
+ */
3090
+ constructor(initData?: AttributeInitData);
3091
+ /**
3092
+ * count 查询
3093
+ * @param options 查询选项
3094
+ */
3095
+ static count(options: CountOptions<typeof Attribute,AttributeRuleGroup>): Observable<number>;
3096
+ /**
3097
+ * find 查询
3098
+ * @param options 查询选项
3099
+ */
3100
+ static find(options: FindOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
3101
+ /**
3102
+ * findAll 查询
3103
+ * @param options 查询选项
3104
+ */
3105
+ static findAll(options: FindAllOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute[]>;
3106
+ /**
3107
+ * findOne 查询
3108
+ * @param options 查询选项
3109
+ */
3110
+ static findOne(options: FindOneOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute | undefined>;
3111
+ /**
3112
+ * findOneOrFail 查询
3113
+ * @param options 查询选项
3114
+ */
3115
+ static findOneOrFail(options: FindOneOrFailOptions<typeof Attribute,AttributeRuleGroup,AttributeOrderByField>): Observable<Attribute>;
3116
+ /**
3117
+ * get 查询
3118
+ * @param options 查询选项
3119
+ */
3120
+ static get(options: UUID): Observable<Attribute>;
3121
+ /**
3122
+ * 删除
3123
+ */
3124
+ remove(): Promise<Attribute>;
3125
+ /**
3126
+ * 重置数据
3127
+ */
3128
+ reset(): void;
3129
+ /**
3130
+ * 保存
3131
+ */
3132
+ save(): Promise<Attribute>;
3133
+ }
3134
+
3135
+ export declare const ENTITIES: EntityType[];
3136
+