@aiao/rxdb-test 0.0.6 → 0.0.8

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