@aiao/rxdb-test 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,7 @@ declare type UserRule = UUIDRules<User, 'id'>
30
30
  | RelationStringRules<'orders.updatedBy', string | null>
31
31
  | RelationStringRules<'orders.number', string>
32
32
  | RelationNumberRules<'orders.amount', number>
33
+ | RelationStringRules<'orders.status', string | null>
33
34
  | UUIDRules<Order, 'ownerId'>
34
35
  | RelationUUIDRules<'orders.items.id', UUID>
35
36
  | RelationDateRules<'orders.items.createdAt', Date>
@@ -40,12 +41,196 @@ declare type UserRule = UUIDRules<User, 'id'>
40
41
  | RelationNumberRules<'orders.items.quantity', number>
41
42
  | RelationNumberRules<'orders.items.price', number>
42
43
  | UUIDRules<OrderItem, 'orderId'>
44
+ | UUIDRules<OrderItem, 'skuId'>
45
+ | RelationUUIDRules<'orders.items.sku.id', UUID>
46
+ | RelationDateRules<'orders.items.sku.createdAt', Date>
47
+ | RelationDateRules<'orders.items.sku.updatedAt', Date>
48
+ | RelationStringRules<'orders.items.sku.createdBy', string | null>
49
+ | RelationStringRules<'orders.items.sku.updatedBy', string | null>
50
+ | RelationStringRules<'orders.items.sku.code', string>
51
+ | RelationNumberRules<'orders.items.sku.price', number>
52
+ | RelationNumberRules<'orders.items.sku.stock', number>
53
+ | UUIDRules<SKU, 'productId'>
54
+ | RelationUUIDRules<'orders.items.sku.attributes.id', UUID>
55
+ | RelationDateRules<'orders.items.sku.attributes.createdAt', Date>
56
+ | RelationDateRules<'orders.items.sku.attributes.updatedAt', Date>
57
+ | RelationStringRules<'orders.items.sku.attributes.createdBy', string | null>
58
+ | RelationStringRules<'orders.items.sku.attributes.updatedBy', string | null>
59
+ | UUIDRules<SKUAttributes, 'skuId'>
60
+ | UUIDRules<SKUAttributes, 'attributeId'>
61
+ | UUIDRules<SKUAttributes, 'valueId'>
62
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.id', UUID>
63
+ | RelationDateRules<'orders.items.sku.attributes.attribute.createdAt', Date>
64
+ | RelationDateRules<'orders.items.sku.attributes.attribute.updatedAt', Date>
65
+ | RelationStringRules<'orders.items.sku.attributes.attribute.createdBy', string | null>
66
+ | RelationStringRules<'orders.items.sku.attributes.attribute.updatedBy', string | null>
67
+ | RelationStringRules<'orders.items.sku.attributes.attribute.name', string>
68
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.values.id', UUID>
69
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.createdAt', Date>
70
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.updatedAt', Date>
71
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.createdBy', string | null>
72
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.updatedBy', string | null>
73
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.name', string>
74
+ | UUIDRules<AttributeValue, 'attributeId'>
75
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.id', UUID>
76
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdAt', Date>
77
+ | RelationDateRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
78
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
79
+ | RelationStringRules<'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
80
+ | RelationUUIDRules<'orders.items.sku.attributes.attribute.skuAttributes.id', UUID>
81
+ | RelationDateRules<'orders.items.sku.attributes.attribute.skuAttributes.createdAt', Date>
82
+ | RelationDateRules<'orders.items.sku.attributes.attribute.skuAttributes.updatedAt', Date>
83
+ | RelationStringRules<'orders.items.sku.attributes.attribute.skuAttributes.createdBy', string | null>
84
+ | RelationStringRules<'orders.items.sku.attributes.attribute.skuAttributes.updatedBy', string | null>
85
+ | RelationUUIDRules<'orders.items.sku.attributes.value.id', UUID>
86
+ | RelationDateRules<'orders.items.sku.attributes.value.createdAt', Date>
87
+ | RelationDateRules<'orders.items.sku.attributes.value.updatedAt', Date>
88
+ | RelationStringRules<'orders.items.sku.attributes.value.createdBy', string | null>
89
+ | RelationStringRules<'orders.items.sku.attributes.value.updatedBy', string | null>
90
+ | RelationStringRules<'orders.items.sku.attributes.value.name', string>
91
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.id', UUID>
92
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.createdAt', Date>
93
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.updatedAt', Date>
94
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.createdBy', string | null>
95
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.updatedBy', string | null>
96
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.name', string>
97
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.values.id', UUID>
98
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.values.createdAt', Date>
99
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.values.updatedAt', Date>
100
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.createdBy', string | null>
101
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.updatedBy', string | null>
102
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.values.name', string>
103
+ | RelationUUIDRules<'orders.items.sku.attributes.value.attribute.skuAttributes.id', UUID>
104
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.skuAttributes.createdAt', Date>
105
+ | RelationDateRules<'orders.items.sku.attributes.value.attribute.skuAttributes.updatedAt', Date>
106
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.skuAttributes.createdBy', string | null>
107
+ | RelationStringRules<'orders.items.sku.attributes.value.attribute.skuAttributes.updatedBy', string | null>
108
+ | RelationUUIDRules<'orders.items.sku.attributes.value.skuAttributeValues.id', UUID>
109
+ | RelationDateRules<'orders.items.sku.attributes.value.skuAttributeValues.createdAt', Date>
110
+ | RelationDateRules<'orders.items.sku.attributes.value.skuAttributeValues.updatedAt', Date>
111
+ | RelationStringRules<'orders.items.sku.attributes.value.skuAttributeValues.createdBy', string | null>
112
+ | RelationStringRules<'orders.items.sku.attributes.value.skuAttributeValues.updatedBy', string | null>
113
+ | RelationUUIDRules<'orders.items.sku.orderItems.id', UUID>
114
+ | RelationDateRules<'orders.items.sku.orderItems.createdAt', Date>
115
+ | RelationDateRules<'orders.items.sku.orderItems.updatedAt', Date>
116
+ | RelationStringRules<'orders.items.sku.orderItems.createdBy', string | null>
117
+ | RelationStringRules<'orders.items.sku.orderItems.updatedBy', string | null>
118
+ | RelationStringRules<'orders.items.sku.orderItems.productName', string>
119
+ | RelationNumberRules<'orders.items.sku.orderItems.quantity', number>
120
+ | RelationNumberRules<'orders.items.sku.orderItems.price', number>
121
+ | RelationUUIDRules<'orders.items.sku.product.id', UUID>
122
+ | RelationDateRules<'orders.items.sku.product.createdAt', Date>
123
+ | RelationDateRules<'orders.items.sku.product.updatedAt', Date>
124
+ | RelationStringRules<'orders.items.sku.product.createdBy', string | null>
125
+ | RelationStringRules<'orders.items.sku.product.updatedBy', string | null>
126
+ | RelationStringRules<'orders.items.sku.product.name', string>
127
+ | RelationStringRules<'orders.items.sku.product.description', string | null>
128
+ | RelationUUIDRules<'orders.items.sku.product.skus.id', UUID>
129
+ | RelationDateRules<'orders.items.sku.product.skus.createdAt', Date>
130
+ | RelationDateRules<'orders.items.sku.product.skus.updatedAt', Date>
131
+ | RelationStringRules<'orders.items.sku.product.skus.createdBy', string | null>
132
+ | RelationStringRules<'orders.items.sku.product.skus.updatedBy', string | null>
133
+ | RelationStringRules<'orders.items.sku.product.skus.code', string>
134
+ | RelationNumberRules<'orders.items.sku.product.skus.price', number>
135
+ | RelationNumberRules<'orders.items.sku.product.skus.stock', number>
136
+ | RelationUUIDRules<'orders.items.sku.product.categories.id', UUID>
137
+ | RelationDateRules<'orders.items.sku.product.categories.createdAt', Date>
138
+ | RelationDateRules<'orders.items.sku.product.categories.updatedAt', Date>
139
+ | RelationStringRules<'orders.items.sku.product.categories.createdBy', string | null>
140
+ | RelationStringRules<'orders.items.sku.product.categories.updatedBy', string | null>
141
+ | RelationStringRules<'orders.items.sku.product.categories.name', string>
142
+ | RelationUUIDRules<'orders.items.sku.product.categories.orderItems.id', UUID>
143
+ | RelationDateRules<'orders.items.sku.product.categories.orderItems.createdAt', Date>
144
+ | RelationDateRules<'orders.items.sku.product.categories.orderItems.updatedAt', Date>
145
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.createdBy', string | null>
146
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.updatedBy', string | null>
147
+ | RelationStringRules<'orders.items.sku.product.categories.orderItems.productName', string>
148
+ | RelationNumberRules<'orders.items.sku.product.categories.orderItems.quantity', number>
149
+ | RelationNumberRules<'orders.items.sku.product.categories.orderItems.price', number>
43
150
  | RelationUUIDRules<'orders.items.categories.id', UUID>
44
151
  | RelationDateRules<'orders.items.categories.createdAt', Date>
45
152
  | RelationDateRules<'orders.items.categories.updatedAt', Date>
46
153
  | RelationStringRules<'orders.items.categories.createdBy', string | null>
47
154
  | RelationStringRules<'orders.items.categories.updatedBy', string | null>
48
- | RelationStringRules<'orders.items.categories.name', string>;
155
+ | RelationStringRules<'orders.items.categories.name', string>
156
+ | RelationUUIDRules<'orders.items.categories.products.id', UUID>
157
+ | RelationDateRules<'orders.items.categories.products.createdAt', Date>
158
+ | RelationDateRules<'orders.items.categories.products.updatedAt', Date>
159
+ | RelationStringRules<'orders.items.categories.products.createdBy', string | null>
160
+ | RelationStringRules<'orders.items.categories.products.updatedBy', string | null>
161
+ | RelationStringRules<'orders.items.categories.products.name', string>
162
+ | RelationStringRules<'orders.items.categories.products.description', string | null>
163
+ | RelationUUIDRules<'orders.items.categories.products.skus.id', UUID>
164
+ | RelationDateRules<'orders.items.categories.products.skus.createdAt', Date>
165
+ | RelationDateRules<'orders.items.categories.products.skus.updatedAt', Date>
166
+ | RelationStringRules<'orders.items.categories.products.skus.createdBy', string | null>
167
+ | RelationStringRules<'orders.items.categories.products.skus.updatedBy', string | null>
168
+ | RelationStringRules<'orders.items.categories.products.skus.code', string>
169
+ | RelationNumberRules<'orders.items.categories.products.skus.price', number>
170
+ | RelationNumberRules<'orders.items.categories.products.skus.stock', number>
171
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.id', UUID>
172
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.createdAt', Date>
173
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.updatedAt', Date>
174
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.createdBy', string | null>
175
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.updatedBy', string | null>
176
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.id', UUID>
177
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.createdAt', Date>
178
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.updatedAt', Date>
179
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.createdBy', string | null>
180
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.updatedBy', string | null>
181
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.name', string>
182
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.values.id', UUID>
183
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.createdAt', Date>
184
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.updatedAt', Date>
185
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.createdBy', string | null>
186
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.updatedBy', string | null>
187
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.name', string>
188
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id', UUID>
189
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt', Date>
190
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt', Date>
191
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy', string | null>
192
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy', string | null>
193
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.id', UUID>
194
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdAt', Date>
195
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt', Date>
196
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdBy', string | null>
197
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy', string | null>
198
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.id', UUID>
199
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.createdAt', Date>
200
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.updatedAt', Date>
201
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.createdBy', string | null>
202
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.updatedBy', string | null>
203
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.name', string>
204
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.id', UUID>
205
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.createdAt', Date>
206
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.updatedAt', Date>
207
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.createdBy', string | null>
208
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.updatedBy', string | null>
209
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.name', string>
210
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.values.id', UUID>
211
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.values.createdAt', Date>
212
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.values.updatedAt', Date>
213
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.createdBy', string | null>
214
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.updatedBy', string | null>
215
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.values.name', string>
216
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.id', UUID>
217
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt', Date>
218
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt', Date>
219
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy', string | null>
220
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy', string | null>
221
+ | RelationUUIDRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.id', UUID>
222
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdAt', Date>
223
+ | RelationDateRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt', Date>
224
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdBy', string | null>
225
+ | RelationStringRules<'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy', string | null>
226
+ | RelationUUIDRules<'orders.items.categories.products.skus.orderItems.id', UUID>
227
+ | RelationDateRules<'orders.items.categories.products.skus.orderItems.createdAt', Date>
228
+ | RelationDateRules<'orders.items.categories.products.skus.orderItems.updatedAt', Date>
229
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.createdBy', string | null>
230
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.updatedBy', string | null>
231
+ | RelationStringRules<'orders.items.categories.products.skus.orderItems.productName', string>
232
+ | RelationNumberRules<'orders.items.categories.products.skus.orderItems.quantity', number>
233
+ | RelationNumberRules<'orders.items.categories.products.skus.orderItems.price', number>;
49
234
 
50
235
  /**
51
236
  * RuleGroupBase
@@ -77,6 +262,7 @@ export declare type UserRuleGroup = RuleGroupBase<typeof User,
77
262
  |'orders.updatedBy'
78
263
  |'orders.number'
79
264
  |'orders.amount'
265
+ |'orders.status'
80
266
  |'ownerId'
81
267
  |'orders.items.id'
82
268
  |'orders.items.createdAt'
@@ -87,12 +273,236 @@ export declare type UserRuleGroup = RuleGroupBase<typeof User,
87
273
  |'orders.items.quantity'
88
274
  |'orders.items.price'
89
275
  |'orderId'
276
+ |'skuId'
277
+ |'orders.items.sku.id'
278
+ |'orders.items.sku.createdAt'
279
+ |'orders.items.sku.updatedAt'
280
+ |'orders.items.sku.createdBy'
281
+ |'orders.items.sku.updatedBy'
282
+ |'orders.items.sku.code'
283
+ |'orders.items.sku.price'
284
+ |'orders.items.sku.stock'
285
+ |'productId'
286
+ |'orders.items.sku.attributes.id'
287
+ |'orders.items.sku.attributes.createdAt'
288
+ |'orders.items.sku.attributes.updatedAt'
289
+ |'orders.items.sku.attributes.createdBy'
290
+ |'orders.items.sku.attributes.updatedBy'
291
+ |'skuId'
292
+ |'attributeId'
293
+ |'valueId'
294
+ |'orders.items.sku.attributes.attribute.id'
295
+ |'orders.items.sku.attributes.attribute.createdAt'
296
+ |'orders.items.sku.attributes.attribute.updatedAt'
297
+ |'orders.items.sku.attributes.attribute.createdBy'
298
+ |'orders.items.sku.attributes.attribute.updatedBy'
299
+ |'orders.items.sku.attributes.attribute.name'
300
+ |'orders.items.sku.attributes.attribute.values.id'
301
+ |'orders.items.sku.attributes.attribute.values.createdAt'
302
+ |'orders.items.sku.attributes.attribute.values.updatedAt'
303
+ |'orders.items.sku.attributes.attribute.values.createdBy'
304
+ |'orders.items.sku.attributes.attribute.values.updatedBy'
305
+ |'orders.items.sku.attributes.attribute.values.name'
306
+ |'attributeId'
307
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.id'
308
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdAt'
309
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedAt'
310
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.createdBy'
311
+ |'orders.items.sku.attributes.attribute.values.skuAttributeValues.updatedBy'
312
+ |'skuId'
313
+ |'attributeId'
314
+ |'valueId'
315
+ |'orders.items.sku.attributes.attribute.skuAttributes.id'
316
+ |'orders.items.sku.attributes.attribute.skuAttributes.createdAt'
317
+ |'orders.items.sku.attributes.attribute.skuAttributes.updatedAt'
318
+ |'orders.items.sku.attributes.attribute.skuAttributes.createdBy'
319
+ |'orders.items.sku.attributes.attribute.skuAttributes.updatedBy'
320
+ |'skuId'
321
+ |'attributeId'
322
+ |'valueId'
323
+ |'orders.items.sku.attributes.value.id'
324
+ |'orders.items.sku.attributes.value.createdAt'
325
+ |'orders.items.sku.attributes.value.updatedAt'
326
+ |'orders.items.sku.attributes.value.createdBy'
327
+ |'orders.items.sku.attributes.value.updatedBy'
328
+ |'orders.items.sku.attributes.value.name'
329
+ |'attributeId'
330
+ |'orders.items.sku.attributes.value.attribute.id'
331
+ |'orders.items.sku.attributes.value.attribute.createdAt'
332
+ |'orders.items.sku.attributes.value.attribute.updatedAt'
333
+ |'orders.items.sku.attributes.value.attribute.createdBy'
334
+ |'orders.items.sku.attributes.value.attribute.updatedBy'
335
+ |'orders.items.sku.attributes.value.attribute.name'
336
+ |'orders.items.sku.attributes.value.attribute.values.id'
337
+ |'orders.items.sku.attributes.value.attribute.values.createdAt'
338
+ |'orders.items.sku.attributes.value.attribute.values.updatedAt'
339
+ |'orders.items.sku.attributes.value.attribute.values.createdBy'
340
+ |'orders.items.sku.attributes.value.attribute.values.updatedBy'
341
+ |'orders.items.sku.attributes.value.attribute.values.name'
342
+ |'attributeId'
343
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.id'
344
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.createdAt'
345
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.updatedAt'
346
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.createdBy'
347
+ |'orders.items.sku.attributes.value.attribute.skuAttributes.updatedBy'
348
+ |'skuId'
349
+ |'attributeId'
350
+ |'valueId'
351
+ |'orders.items.sku.attributes.value.skuAttributeValues.id'
352
+ |'orders.items.sku.attributes.value.skuAttributeValues.createdAt'
353
+ |'orders.items.sku.attributes.value.skuAttributeValues.updatedAt'
354
+ |'orders.items.sku.attributes.value.skuAttributeValues.createdBy'
355
+ |'orders.items.sku.attributes.value.skuAttributeValues.updatedBy'
356
+ |'skuId'
357
+ |'attributeId'
358
+ |'valueId'
359
+ |'orders.items.sku.orderItems.id'
360
+ |'orders.items.sku.orderItems.createdAt'
361
+ |'orders.items.sku.orderItems.updatedAt'
362
+ |'orders.items.sku.orderItems.createdBy'
363
+ |'orders.items.sku.orderItems.updatedBy'
364
+ |'orders.items.sku.orderItems.productName'
365
+ |'orders.items.sku.orderItems.quantity'
366
+ |'orders.items.sku.orderItems.price'
367
+ |'orderId'
368
+ |'skuId'
369
+ |'orders.items.sku.product.id'
370
+ |'orders.items.sku.product.createdAt'
371
+ |'orders.items.sku.product.updatedAt'
372
+ |'orders.items.sku.product.createdBy'
373
+ |'orders.items.sku.product.updatedBy'
374
+ |'orders.items.sku.product.name'
375
+ |'orders.items.sku.product.description'
376
+ |'orders.items.sku.product.skus.id'
377
+ |'orders.items.sku.product.skus.createdAt'
378
+ |'orders.items.sku.product.skus.updatedAt'
379
+ |'orders.items.sku.product.skus.createdBy'
380
+ |'orders.items.sku.product.skus.updatedBy'
381
+ |'orders.items.sku.product.skus.code'
382
+ |'orders.items.sku.product.skus.price'
383
+ |'orders.items.sku.product.skus.stock'
384
+ |'productId'
385
+ |'orders.items.sku.product.categories.id'
386
+ |'orders.items.sku.product.categories.createdAt'
387
+ |'orders.items.sku.product.categories.updatedAt'
388
+ |'orders.items.sku.product.categories.createdBy'
389
+ |'orders.items.sku.product.categories.updatedBy'
390
+ |'orders.items.sku.product.categories.name'
391
+ |'orders.items.sku.product.categories.orderItems.id'
392
+ |'orders.items.sku.product.categories.orderItems.createdAt'
393
+ |'orders.items.sku.product.categories.orderItems.updatedAt'
394
+ |'orders.items.sku.product.categories.orderItems.createdBy'
395
+ |'orders.items.sku.product.categories.orderItems.updatedBy'
396
+ |'orders.items.sku.product.categories.orderItems.productName'
397
+ |'orders.items.sku.product.categories.orderItems.quantity'
398
+ |'orders.items.sku.product.categories.orderItems.price'
399
+ |'orderId'
400
+ |'skuId'
90
401
  |'orders.items.categories.id'
91
402
  |'orders.items.categories.createdAt'
92
403
  |'orders.items.categories.updatedAt'
93
404
  |'orders.items.categories.createdBy'
94
405
  |'orders.items.categories.updatedBy'
95
- |'orders.items.categories.name',
406
+ |'orders.items.categories.name'
407
+ |'orders.items.categories.products.id'
408
+ |'orders.items.categories.products.createdAt'
409
+ |'orders.items.categories.products.updatedAt'
410
+ |'orders.items.categories.products.createdBy'
411
+ |'orders.items.categories.products.updatedBy'
412
+ |'orders.items.categories.products.name'
413
+ |'orders.items.categories.products.description'
414
+ |'orders.items.categories.products.skus.id'
415
+ |'orders.items.categories.products.skus.createdAt'
416
+ |'orders.items.categories.products.skus.updatedAt'
417
+ |'orders.items.categories.products.skus.createdBy'
418
+ |'orders.items.categories.products.skus.updatedBy'
419
+ |'orders.items.categories.products.skus.code'
420
+ |'orders.items.categories.products.skus.price'
421
+ |'orders.items.categories.products.skus.stock'
422
+ |'productId'
423
+ |'orders.items.categories.products.skus.attributes.id'
424
+ |'orders.items.categories.products.skus.attributes.createdAt'
425
+ |'orders.items.categories.products.skus.attributes.updatedAt'
426
+ |'orders.items.categories.products.skus.attributes.createdBy'
427
+ |'orders.items.categories.products.skus.attributes.updatedBy'
428
+ |'skuId'
429
+ |'attributeId'
430
+ |'valueId'
431
+ |'orders.items.categories.products.skus.attributes.attribute.id'
432
+ |'orders.items.categories.products.skus.attributes.attribute.createdAt'
433
+ |'orders.items.categories.products.skus.attributes.attribute.updatedAt'
434
+ |'orders.items.categories.products.skus.attributes.attribute.createdBy'
435
+ |'orders.items.categories.products.skus.attributes.attribute.updatedBy'
436
+ |'orders.items.categories.products.skus.attributes.attribute.name'
437
+ |'orders.items.categories.products.skus.attributes.attribute.values.id'
438
+ |'orders.items.categories.products.skus.attributes.attribute.values.createdAt'
439
+ |'orders.items.categories.products.skus.attributes.attribute.values.updatedAt'
440
+ |'orders.items.categories.products.skus.attributes.attribute.values.createdBy'
441
+ |'orders.items.categories.products.skus.attributes.attribute.values.updatedBy'
442
+ |'orders.items.categories.products.skus.attributes.attribute.values.name'
443
+ |'attributeId'
444
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.id'
445
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdAt'
446
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedAt'
447
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.createdBy'
448
+ |'orders.items.categories.products.skus.attributes.attribute.values.skuAttributeValues.updatedBy'
449
+ |'skuId'
450
+ |'attributeId'
451
+ |'valueId'
452
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.id'
453
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdAt'
454
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedAt'
455
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.createdBy'
456
+ |'orders.items.categories.products.skus.attributes.attribute.skuAttributes.updatedBy'
457
+ |'skuId'
458
+ |'attributeId'
459
+ |'valueId'
460
+ |'orders.items.categories.products.skus.attributes.value.id'
461
+ |'orders.items.categories.products.skus.attributes.value.createdAt'
462
+ |'orders.items.categories.products.skus.attributes.value.updatedAt'
463
+ |'orders.items.categories.products.skus.attributes.value.createdBy'
464
+ |'orders.items.categories.products.skus.attributes.value.updatedBy'
465
+ |'orders.items.categories.products.skus.attributes.value.name'
466
+ |'attributeId'
467
+ |'orders.items.categories.products.skus.attributes.value.attribute.id'
468
+ |'orders.items.categories.products.skus.attributes.value.attribute.createdAt'
469
+ |'orders.items.categories.products.skus.attributes.value.attribute.updatedAt'
470
+ |'orders.items.categories.products.skus.attributes.value.attribute.createdBy'
471
+ |'orders.items.categories.products.skus.attributes.value.attribute.updatedBy'
472
+ |'orders.items.categories.products.skus.attributes.value.attribute.name'
473
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.id'
474
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.createdAt'
475
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.updatedAt'
476
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.createdBy'
477
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.updatedBy'
478
+ |'orders.items.categories.products.skus.attributes.value.attribute.values.name'
479
+ |'attributeId'
480
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.id'
481
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdAt'
482
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedAt'
483
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.createdBy'
484
+ |'orders.items.categories.products.skus.attributes.value.attribute.skuAttributes.updatedBy'
485
+ |'skuId'
486
+ |'attributeId'
487
+ |'valueId'
488
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.id'
489
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdAt'
490
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedAt'
491
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.createdBy'
492
+ |'orders.items.categories.products.skus.attributes.value.skuAttributeValues.updatedBy'
493
+ |'skuId'
494
+ |'attributeId'
495
+ |'valueId'
496
+ |'orders.items.categories.products.skus.orderItems.id'
497
+ |'orders.items.categories.products.skus.orderItems.createdAt'
498
+ |'orders.items.categories.products.skus.orderItems.updatedAt'
499
+ |'orders.items.categories.products.skus.orderItems.createdBy'
500
+ |'orders.items.categories.products.skus.orderItems.updatedBy'
501
+ |'orders.items.categories.products.skus.orderItems.productName'
502
+ |'orders.items.categories.products.skus.orderItems.quantity'
503
+ |'orders.items.categories.products.skus.orderItems.price'
504
+ |'orderId'
505
+ |'skuId',
96
506
  UserRule>;
97
507
 
98
508
  /**
package/dist/shop/User.js CHANGED
@@ -4,6 +4,7 @@ User = __decorateClass(
4
4
  [
5
5
  Entity({
6
6
  name: "User",
7
+ namespace: "shop",
7
8
  tableName: "user",
8
9
  displayName: "用户表",
9
10
  properties: [
@@ -44,7 +45,7 @@ User = __decorateClass(
44
45
  mappedEntity: "IdCard",
45
46
  mappedProperty: "owner",
46
47
  nullable: true,
47
- mappedNamespace: "public",
48
+ mappedNamespace: "shop",
48
49
  onDelete: "CASCADE",
49
50
  onUpdate: "RESTRICT",
50
51
  columnName: "idCardId"
@@ -55,13 +56,12 @@ User = __decorateClass(
55
56
  kind: RelationKind.ONE_TO_MANY,
56
57
  mappedEntity: "Order",
57
58
  mappedProperty: "owner",
58
- mappedNamespace: "public",
59
+ mappedNamespace: "shop",
59
60
  onDelete: "CASCADE",
60
61
  onUpdate: "RESTRICT"
61
62
  }
62
63
  ],
63
64
  repository: "Repository",
64
- namespace: "public",
65
65
  indexes: [],
66
66
  computedProperties: [],
67
67
  extends: [
@@ -32,43 +32,63 @@ declare module "@aiao/rxdb" {
32
32
  /**
33
33
  * 用户表
34
34
  */
35
- User: typeof User;
35
+ shop: {
36
+ User: typeof User;
37
+ };
36
38
  /**
37
39
  * SKU属性关联
38
40
  */
39
- SKUAttributes: typeof SKUAttributes;
41
+ shop: {
42
+ SKUAttributes: typeof SKUAttributes;
43
+ };
40
44
  /**
41
45
  * 库存单元
42
46
  */
43
- SKU: typeof SKU;
47
+ shop: {
48
+ SKU: typeof SKU;
49
+ };
44
50
  /**
45
51
  * 产品
46
52
  */
47
- Product: typeof Product;
53
+ shop: {
54
+ Product: typeof Product;
55
+ };
48
56
  /**
49
57
  * 订单项目
50
58
  */
51
- OrderItem: typeof OrderItem;
59
+ shop: {
60
+ OrderItem: typeof OrderItem;
61
+ };
52
62
  /**
53
63
  * 订单
54
64
  */
55
- Order: typeof Order;
65
+ shop: {
66
+ Order: typeof Order;
67
+ };
56
68
  /**
57
69
  * 身份证
58
70
  */
59
- IdCard: typeof IdCard;
71
+ shop: {
72
+ IdCard: typeof IdCard;
73
+ };
60
74
  /**
61
75
  * 产品分类
62
76
  */
63
- Category: typeof Category;
77
+ shop: {
78
+ Category: typeof Category;
79
+ };
64
80
  /**
65
81
  * 属性值
66
82
  */
67
- AttributeValue: typeof AttributeValue;
83
+ shop: {
84
+ AttributeValue: typeof AttributeValue;
85
+ };
68
86
  /**
69
87
  * 属性
70
88
  */
71
- Attribute: typeof Attribute;
89
+ shop: {
90
+ Attribute: typeof Attribute;
91
+ };
72
92
  }
73
93
  }
74
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiao/rxdb-test",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -39,9 +39,9 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@aiao/rxdb": "0.0.16"
42
+ "@aiao/rxdb": "0.0.18"
43
43
  },
44
44
  "devDependencies": {
45
- "@aiao/rxdb-client-generator": "0.0.16"
45
+ "@aiao/rxdb-client-generator": "0.0.18"
46
46
  }
47
47
  }