@aiao/rxdb-test 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Cross-framework test fixtures for findByCursor / useInfiniteScroll
|
|
4
|
+
*
|
|
5
|
+
* These JSON fixtures define parameterized test data that all three frameworks
|
|
6
|
+
* (Angular, React, Vue) import in their respective test files to verify
|
|
7
|
+
* behavioral consistency.
|
|
8
|
+
*
|
|
9
|
+
* Usage in test files:
|
|
10
|
+
* ```ts
|
|
11
|
+
* import limitZero from '@aiao/rxdb-test/cross-framework-fixtures/find-by-cursor-limit-zero.json';
|
|
12
|
+
* // or via direct relative path
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Fixture files:
|
|
16
|
+
* - find-by-cursor-limit-zero.json — limit=0 edge case
|
|
17
|
+
* - find-by-cursor-limit-one.json — limit=1 single item
|
|
18
|
+
* - find-by-cursor-empty-dataset.json — no data
|
|
19
|
+
* - find-by-cursor-exact-division.json — data count is exact multiple of limit
|
|
20
|
+
* - find-by-cursor-reactive-option-change.json — options change stability
|
|
21
|
+
* - find-by-cursor-unsubscribe-no-leak.json — cleanup / no leak contract
|
|
22
|
+
*/
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cross-framework-fixtures/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG"}
|
package/dist/entities/index.js
CHANGED
|
@@ -4,37 +4,46 @@ TypeDemo = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "TypeDemo",
|
|
7
|
+
tableName: "type_demo",
|
|
7
8
|
properties: [
|
|
8
9
|
{
|
|
9
10
|
name: "string",
|
|
10
|
-
type: PropertyType.string
|
|
11
|
+
type: PropertyType.string,
|
|
12
|
+
columnName: "string"
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
name: "number",
|
|
14
|
-
type: PropertyType.number
|
|
16
|
+
type: PropertyType.number,
|
|
17
|
+
columnName: "number"
|
|
15
18
|
},
|
|
16
19
|
{
|
|
17
20
|
name: "integer",
|
|
18
|
-
type: PropertyType.integer
|
|
21
|
+
type: PropertyType.integer,
|
|
22
|
+
columnName: "integer"
|
|
19
23
|
},
|
|
20
24
|
{
|
|
21
25
|
name: "boolean",
|
|
22
|
-
type: PropertyType.boolean
|
|
26
|
+
type: PropertyType.boolean,
|
|
27
|
+
columnName: "boolean"
|
|
23
28
|
},
|
|
24
29
|
{
|
|
25
30
|
name: "date",
|
|
26
|
-
type: PropertyType.date
|
|
31
|
+
type: PropertyType.date,
|
|
32
|
+
columnName: "date"
|
|
27
33
|
},
|
|
28
34
|
{
|
|
29
35
|
name: "stringArray",
|
|
36
|
+
columnName: "string_array",
|
|
30
37
|
type: PropertyType.stringArray
|
|
31
38
|
},
|
|
32
39
|
{
|
|
33
40
|
name: "numberArray",
|
|
41
|
+
columnName: "number_array",
|
|
34
42
|
type: PropertyType.numberArray
|
|
35
43
|
},
|
|
36
44
|
{
|
|
37
45
|
name: "keyValue",
|
|
46
|
+
columnName: "key_value",
|
|
38
47
|
type: PropertyType.keyValue,
|
|
39
48
|
properties: [
|
|
40
49
|
{
|
|
@@ -61,7 +70,8 @@ TypeDemo = __decorateClass(
|
|
|
61
70
|
},
|
|
62
71
|
{
|
|
63
72
|
name: "json",
|
|
64
|
-
type: PropertyType.json
|
|
73
|
+
type: PropertyType.json,
|
|
74
|
+
columnName: "json"
|
|
65
75
|
}
|
|
66
76
|
],
|
|
67
77
|
repository: "Repository",
|
|
@@ -82,15 +92,18 @@ Todo = __decorateClass(
|
|
|
82
92
|
[
|
|
83
93
|
Entity({
|
|
84
94
|
name: "Todo",
|
|
95
|
+
tableName: "todos",
|
|
85
96
|
properties: [
|
|
86
97
|
{
|
|
87
98
|
name: "title",
|
|
88
|
-
type: PropertyType.string
|
|
99
|
+
type: PropertyType.string,
|
|
100
|
+
columnName: "title"
|
|
89
101
|
},
|
|
90
102
|
{
|
|
91
103
|
name: "completed",
|
|
92
104
|
type: PropertyType.boolean,
|
|
93
|
-
default: false
|
|
105
|
+
default: false,
|
|
106
|
+
columnName: "completed"
|
|
94
107
|
}
|
|
95
108
|
],
|
|
96
109
|
repository: "Repository",
|
|
@@ -111,13 +124,16 @@ MenuSimple = __decorateClass(
|
|
|
111
124
|
[
|
|
112
125
|
Entity({
|
|
113
126
|
name: "MenuSimple",
|
|
127
|
+
tableName: "menu_simple",
|
|
114
128
|
properties: [
|
|
115
129
|
{
|
|
116
130
|
name: "title",
|
|
117
|
-
type: PropertyType.string
|
|
131
|
+
type: PropertyType.string,
|
|
132
|
+
columnName: "title"
|
|
118
133
|
},
|
|
119
134
|
{
|
|
120
135
|
name: "sortOrder",
|
|
136
|
+
columnName: "sort_order",
|
|
121
137
|
type: PropertyType.string,
|
|
122
138
|
nullable: true
|
|
123
139
|
}
|
|
@@ -147,13 +163,16 @@ MenuLarge = __decorateClass(
|
|
|
147
163
|
[
|
|
148
164
|
Entity({
|
|
149
165
|
name: "MenuLarge",
|
|
166
|
+
tableName: "menu_large",
|
|
150
167
|
properties: [
|
|
151
168
|
{
|
|
152
169
|
name: "title",
|
|
153
|
-
type: PropertyType.string
|
|
170
|
+
type: PropertyType.string,
|
|
171
|
+
columnName: "title"
|
|
154
172
|
},
|
|
155
173
|
{
|
|
156
174
|
name: "sortOrder",
|
|
175
|
+
columnName: "sort_order",
|
|
157
176
|
type: PropertyType.string,
|
|
158
177
|
nullable: true
|
|
159
178
|
}
|
|
@@ -183,31 +202,37 @@ FileNode = __decorateClass(
|
|
|
183
202
|
[
|
|
184
203
|
Entity({
|
|
185
204
|
name: "FileNode",
|
|
205
|
+
tableName: "file_node",
|
|
186
206
|
properties: [
|
|
187
207
|
{
|
|
188
208
|
name: "name",
|
|
189
209
|
type: PropertyType.string,
|
|
190
|
-
nullable: false
|
|
210
|
+
nullable: false,
|
|
211
|
+
columnName: "name"
|
|
191
212
|
},
|
|
192
213
|
{
|
|
193
214
|
name: "type",
|
|
194
215
|
type: PropertyType.string,
|
|
195
|
-
nullable: false
|
|
216
|
+
nullable: false,
|
|
217
|
+
columnName: "type"
|
|
196
218
|
},
|
|
197
219
|
{
|
|
198
220
|
name: "sortOrder",
|
|
221
|
+
columnName: "sort_order",
|
|
199
222
|
type: PropertyType.string,
|
|
200
223
|
nullable: true
|
|
201
224
|
},
|
|
202
225
|
{
|
|
203
226
|
name: "extension",
|
|
204
227
|
type: PropertyType.string,
|
|
205
|
-
nullable: true
|
|
228
|
+
nullable: true,
|
|
229
|
+
columnName: "extension"
|
|
206
230
|
},
|
|
207
231
|
{
|
|
208
232
|
name: "size",
|
|
209
233
|
type: PropertyType.number,
|
|
210
|
-
nullable: true
|
|
234
|
+
nullable: true,
|
|
235
|
+
columnName: "size"
|
|
211
236
|
}
|
|
212
237
|
],
|
|
213
238
|
features: {
|
|
@@ -252,31 +277,37 @@ FileLarge = __decorateClass(
|
|
|
252
277
|
[
|
|
253
278
|
Entity({
|
|
254
279
|
name: "FileLarge",
|
|
280
|
+
tableName: "file_large",
|
|
255
281
|
properties: [
|
|
256
282
|
{
|
|
257
283
|
name: "name",
|
|
258
284
|
type: PropertyType.string,
|
|
259
|
-
nullable: false
|
|
285
|
+
nullable: false,
|
|
286
|
+
columnName: "name"
|
|
260
287
|
},
|
|
261
288
|
{
|
|
262
289
|
name: "type",
|
|
263
290
|
type: PropertyType.string,
|
|
264
|
-
nullable: false
|
|
291
|
+
nullable: false,
|
|
292
|
+
columnName: "type"
|
|
265
293
|
},
|
|
266
294
|
{
|
|
267
295
|
name: "sortOrder",
|
|
296
|
+
columnName: "sort_order",
|
|
268
297
|
type: PropertyType.string,
|
|
269
298
|
nullable: true
|
|
270
299
|
},
|
|
271
300
|
{
|
|
272
301
|
name: "extension",
|
|
273
302
|
type: PropertyType.string,
|
|
274
|
-
nullable: true
|
|
303
|
+
nullable: true,
|
|
304
|
+
columnName: "extension"
|
|
275
305
|
},
|
|
276
306
|
{
|
|
277
307
|
name: "size",
|
|
278
308
|
type: PropertyType.number,
|
|
279
|
-
nullable: true
|
|
309
|
+
nullable: true,
|
|
310
|
+
columnName: "size"
|
|
280
311
|
}
|
|
281
312
|
],
|
|
282
313
|
features: {
|
package/dist/shop/index.js
CHANGED
|
@@ -4,31 +4,36 @@ User = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "User",
|
|
7
|
+
tableName: "user",
|
|
7
8
|
displayName: "用户表",
|
|
8
9
|
properties: [
|
|
9
10
|
{
|
|
10
11
|
type: PropertyType.string,
|
|
11
12
|
name: "name",
|
|
12
|
-
displayName: "姓名"
|
|
13
|
+
displayName: "姓名",
|
|
14
|
+
columnName: "name"
|
|
13
15
|
},
|
|
14
16
|
{
|
|
15
17
|
type: PropertyType.boolean,
|
|
16
18
|
name: "married",
|
|
17
19
|
displayName: "已婚",
|
|
18
|
-
default: false
|
|
20
|
+
default: false,
|
|
21
|
+
columnName: "married"
|
|
19
22
|
},
|
|
20
23
|
{
|
|
21
24
|
type: PropertyType.number,
|
|
22
25
|
name: "age",
|
|
23
26
|
displayName: "年龄",
|
|
24
|
-
default: 25
|
|
27
|
+
default: 25,
|
|
28
|
+
columnName: "age"
|
|
25
29
|
},
|
|
26
30
|
{
|
|
27
31
|
type: PropertyType.string,
|
|
28
32
|
name: "gender",
|
|
29
33
|
displayName: "性别",
|
|
30
34
|
default: "男",
|
|
31
|
-
nullable: true
|
|
35
|
+
nullable: true,
|
|
36
|
+
columnName: "gender"
|
|
32
37
|
}
|
|
33
38
|
],
|
|
34
39
|
relations: [
|
|
@@ -39,6 +44,7 @@ User = __decorateClass(
|
|
|
39
44
|
mappedEntity: "IdCard",
|
|
40
45
|
nullable: true,
|
|
41
46
|
mappedNamespace: "public",
|
|
47
|
+
columnName: "idCardId",
|
|
42
48
|
onDelete: "CASCADE",
|
|
43
49
|
onUpdate: "RESTRICT"
|
|
44
50
|
},
|
|
@@ -49,6 +55,7 @@ User = __decorateClass(
|
|
|
49
55
|
mappedEntity: "Order",
|
|
50
56
|
mappedProperty: "owner",
|
|
51
57
|
mappedNamespace: "public",
|
|
58
|
+
columnName: "ordersId",
|
|
52
59
|
onDelete: "CASCADE",
|
|
53
60
|
onUpdate: "RESTRICT"
|
|
54
61
|
}
|
|
@@ -69,6 +76,7 @@ SKUAttributes = __decorateClass(
|
|
|
69
76
|
[
|
|
70
77
|
Entity({
|
|
71
78
|
name: "SKUAttributes",
|
|
79
|
+
tableName: "sku_attributes",
|
|
72
80
|
displayName: "SKU属性关联",
|
|
73
81
|
relations: [
|
|
74
82
|
{
|
|
@@ -77,6 +85,7 @@ SKUAttributes = __decorateClass(
|
|
|
77
85
|
kind: RelationKind.MANY_TO_ONE,
|
|
78
86
|
mappedEntity: "SKU",
|
|
79
87
|
mappedNamespace: "public",
|
|
88
|
+
columnName: "skuId",
|
|
80
89
|
onDelete: "RESTRICT",
|
|
81
90
|
onUpdate: "RESTRICT"
|
|
82
91
|
},
|
|
@@ -86,6 +95,7 @@ SKUAttributes = __decorateClass(
|
|
|
86
95
|
kind: RelationKind.MANY_TO_ONE,
|
|
87
96
|
mappedEntity: "Attribute",
|
|
88
97
|
mappedNamespace: "public",
|
|
98
|
+
columnName: "attributeId",
|
|
89
99
|
onDelete: "RESTRICT",
|
|
90
100
|
onUpdate: "RESTRICT"
|
|
91
101
|
},
|
|
@@ -95,6 +105,7 @@ SKUAttributes = __decorateClass(
|
|
|
95
105
|
kind: RelationKind.MANY_TO_ONE,
|
|
96
106
|
mappedEntity: "AttributeValue",
|
|
97
107
|
mappedNamespace: "public",
|
|
108
|
+
columnName: "valueId",
|
|
98
109
|
onDelete: "RESTRICT",
|
|
99
110
|
onUpdate: "RESTRICT"
|
|
100
111
|
}
|
|
@@ -116,22 +127,26 @@ SKU = __decorateClass(
|
|
|
116
127
|
[
|
|
117
128
|
Entity({
|
|
118
129
|
name: "SKU",
|
|
130
|
+
tableName: "sku",
|
|
119
131
|
displayName: "库存单元",
|
|
120
132
|
properties: [
|
|
121
133
|
{
|
|
122
134
|
name: "code",
|
|
123
135
|
type: PropertyType.string,
|
|
124
|
-
displayName: "SKU编码"
|
|
136
|
+
displayName: "SKU编码",
|
|
137
|
+
columnName: "code"
|
|
125
138
|
},
|
|
126
139
|
{
|
|
127
140
|
name: "price",
|
|
128
141
|
type: PropertyType.integer,
|
|
129
|
-
displayName: "价格"
|
|
142
|
+
displayName: "价格",
|
|
143
|
+
columnName: "price"
|
|
130
144
|
},
|
|
131
145
|
{
|
|
132
146
|
name: "stock",
|
|
133
147
|
type: PropertyType.integer,
|
|
134
|
-
displayName: "库存"
|
|
148
|
+
displayName: "库存",
|
|
149
|
+
columnName: "stock"
|
|
135
150
|
}
|
|
136
151
|
],
|
|
137
152
|
relations: [
|
|
@@ -142,6 +157,7 @@ SKU = __decorateClass(
|
|
|
142
157
|
mappedEntity: "SKUAttributes",
|
|
143
158
|
mappedProperty: "sku",
|
|
144
159
|
mappedNamespace: "public",
|
|
160
|
+
columnName: "attributesId",
|
|
145
161
|
onDelete: "CASCADE",
|
|
146
162
|
onUpdate: "RESTRICT"
|
|
147
163
|
},
|
|
@@ -151,6 +167,7 @@ SKU = __decorateClass(
|
|
|
151
167
|
kind: RelationKind.MANY_TO_ONE,
|
|
152
168
|
mappedEntity: "Product",
|
|
153
169
|
mappedNamespace: "public",
|
|
170
|
+
columnName: "productId",
|
|
154
171
|
onDelete: "RESTRICT",
|
|
155
172
|
onUpdate: "RESTRICT"
|
|
156
173
|
}
|
|
@@ -171,18 +188,21 @@ Product = __decorateClass(
|
|
|
171
188
|
[
|
|
172
189
|
Entity({
|
|
173
190
|
name: "Product",
|
|
191
|
+
tableName: "product",
|
|
174
192
|
displayName: "产品",
|
|
175
193
|
properties: [
|
|
176
194
|
{
|
|
177
195
|
name: "name",
|
|
178
196
|
type: PropertyType.string,
|
|
179
|
-
displayName: "产品名称"
|
|
197
|
+
displayName: "产品名称",
|
|
198
|
+
columnName: "name"
|
|
180
199
|
},
|
|
181
200
|
{
|
|
182
201
|
name: "description",
|
|
183
202
|
type: PropertyType.string,
|
|
184
203
|
displayName: "产品描述",
|
|
185
|
-
nullable: true
|
|
204
|
+
nullable: true,
|
|
205
|
+
columnName: "description"
|
|
186
206
|
}
|
|
187
207
|
],
|
|
188
208
|
relations: [
|
|
@@ -193,6 +213,7 @@ Product = __decorateClass(
|
|
|
193
213
|
mappedEntity: "SKU",
|
|
194
214
|
mappedProperty: "product",
|
|
195
215
|
mappedNamespace: "public",
|
|
216
|
+
columnName: "skusId",
|
|
196
217
|
onDelete: "CASCADE",
|
|
197
218
|
onUpdate: "RESTRICT"
|
|
198
219
|
}
|
|
@@ -213,22 +234,26 @@ OrderItem = __decorateClass(
|
|
|
213
234
|
[
|
|
214
235
|
Entity({
|
|
215
236
|
name: "OrderItem",
|
|
237
|
+
tableName: "order_item",
|
|
216
238
|
displayName: "订单项目",
|
|
217
239
|
properties: [
|
|
218
240
|
{
|
|
219
241
|
name: "productName",
|
|
242
|
+
columnName: "product_name",
|
|
220
243
|
type: PropertyType.string,
|
|
221
244
|
displayName: "商品名称"
|
|
222
245
|
},
|
|
223
246
|
{
|
|
224
247
|
name: "quantity",
|
|
225
248
|
type: PropertyType.number,
|
|
226
|
-
displayName: "数量"
|
|
249
|
+
displayName: "数量",
|
|
250
|
+
columnName: "quantity"
|
|
227
251
|
},
|
|
228
252
|
{
|
|
229
253
|
name: "price",
|
|
230
254
|
type: PropertyType.number,
|
|
231
|
-
displayName: "单价"
|
|
255
|
+
displayName: "单价",
|
|
256
|
+
columnName: "price"
|
|
232
257
|
}
|
|
233
258
|
],
|
|
234
259
|
relations: [
|
|
@@ -238,6 +263,7 @@ OrderItem = __decorateClass(
|
|
|
238
263
|
kind: RelationKind.MANY_TO_ONE,
|
|
239
264
|
mappedEntity: "Order",
|
|
240
265
|
mappedNamespace: "public",
|
|
266
|
+
columnName: "orderId",
|
|
241
267
|
onDelete: "RESTRICT",
|
|
242
268
|
onUpdate: "RESTRICT"
|
|
243
269
|
},
|
|
@@ -248,6 +274,7 @@ OrderItem = __decorateClass(
|
|
|
248
274
|
mappedEntity: "Category",
|
|
249
275
|
mappedProperty: "orderItems",
|
|
250
276
|
mappedNamespace: "public",
|
|
277
|
+
columnName: "categoriesId",
|
|
251
278
|
onDelete: "RESTRICT",
|
|
252
279
|
onUpdate: "RESTRICT"
|
|
253
280
|
}
|
|
@@ -268,18 +295,21 @@ Order = __decorateClass(
|
|
|
268
295
|
[
|
|
269
296
|
Entity({
|
|
270
297
|
name: "Order",
|
|
298
|
+
tableName: "order",
|
|
271
299
|
displayName: "订单",
|
|
272
300
|
properties: [
|
|
273
301
|
{
|
|
274
302
|
name: "number",
|
|
275
303
|
type: PropertyType.string,
|
|
276
304
|
unique: true,
|
|
277
|
-
displayName: "订单号"
|
|
305
|
+
displayName: "订单号",
|
|
306
|
+
columnName: "number"
|
|
278
307
|
},
|
|
279
308
|
{
|
|
280
309
|
name: "amount",
|
|
281
310
|
type: PropertyType.number,
|
|
282
|
-
displayName: "订单总金额"
|
|
311
|
+
displayName: "订单总金额",
|
|
312
|
+
columnName: "amount"
|
|
283
313
|
}
|
|
284
314
|
],
|
|
285
315
|
relations: [
|
|
@@ -289,6 +319,7 @@ Order = __decorateClass(
|
|
|
289
319
|
kind: RelationKind.MANY_TO_ONE,
|
|
290
320
|
mappedEntity: "User",
|
|
291
321
|
mappedNamespace: "public",
|
|
322
|
+
columnName: "ownerId",
|
|
292
323
|
onDelete: "RESTRICT",
|
|
293
324
|
onUpdate: "RESTRICT"
|
|
294
325
|
},
|
|
@@ -299,6 +330,7 @@ Order = __decorateClass(
|
|
|
299
330
|
mappedEntity: "OrderItem",
|
|
300
331
|
mappedProperty: "order",
|
|
301
332
|
mappedNamespace: "public",
|
|
333
|
+
columnName: "itemsId",
|
|
302
334
|
onDelete: "CASCADE",
|
|
303
335
|
onUpdate: "RESTRICT"
|
|
304
336
|
}
|
|
@@ -319,13 +351,15 @@ IdCard = __decorateClass(
|
|
|
319
351
|
[
|
|
320
352
|
Entity({
|
|
321
353
|
name: "IdCard",
|
|
354
|
+
tableName: "id_card",
|
|
322
355
|
displayName: "身份证",
|
|
323
356
|
properties: [
|
|
324
357
|
{
|
|
325
358
|
name: "code",
|
|
326
359
|
type: PropertyType.string,
|
|
327
360
|
displayName: "身份证号码",
|
|
328
|
-
unique: true
|
|
361
|
+
unique: true,
|
|
362
|
+
columnName: "code"
|
|
329
363
|
}
|
|
330
364
|
],
|
|
331
365
|
relations: [
|
|
@@ -336,6 +370,7 @@ IdCard = __decorateClass(
|
|
|
336
370
|
mappedEntity: "User",
|
|
337
371
|
nullable: false,
|
|
338
372
|
mappedNamespace: "public",
|
|
373
|
+
columnName: "ownerId",
|
|
339
374
|
onDelete: "CASCADE",
|
|
340
375
|
onUpdate: "RESTRICT"
|
|
341
376
|
}
|
|
@@ -356,12 +391,14 @@ Category = __decorateClass(
|
|
|
356
391
|
[
|
|
357
392
|
Entity({
|
|
358
393
|
name: "Category",
|
|
394
|
+
tableName: "category",
|
|
359
395
|
displayName: "产品分类",
|
|
360
396
|
properties: [
|
|
361
397
|
{
|
|
362
398
|
name: "name",
|
|
363
399
|
type: PropertyType.string,
|
|
364
|
-
displayName: "分类名称"
|
|
400
|
+
displayName: "分类名称",
|
|
401
|
+
columnName: "name"
|
|
365
402
|
}
|
|
366
403
|
],
|
|
367
404
|
relations: [
|
|
@@ -372,6 +409,7 @@ Category = __decorateClass(
|
|
|
372
409
|
mappedEntity: "OrderItem",
|
|
373
410
|
mappedProperty: "categories",
|
|
374
411
|
mappedNamespace: "public",
|
|
412
|
+
columnName: "orderItemsId",
|
|
375
413
|
onDelete: "RESTRICT",
|
|
376
414
|
onUpdate: "RESTRICT"
|
|
377
415
|
}
|
|
@@ -392,12 +430,14 @@ AttributeValue = __decorateClass(
|
|
|
392
430
|
[
|
|
393
431
|
Entity({
|
|
394
432
|
name: "AttributeValue",
|
|
433
|
+
tableName: "attribute_value",
|
|
395
434
|
displayName: "属性值",
|
|
396
435
|
properties: [
|
|
397
436
|
{
|
|
398
437
|
name: "name",
|
|
399
438
|
type: PropertyType.string,
|
|
400
|
-
displayName: "属性值名称"
|
|
439
|
+
displayName: "属性值名称",
|
|
440
|
+
columnName: "name"
|
|
401
441
|
}
|
|
402
442
|
],
|
|
403
443
|
relations: [
|
|
@@ -407,6 +447,7 @@ AttributeValue = __decorateClass(
|
|
|
407
447
|
kind: RelationKind.MANY_TO_ONE,
|
|
408
448
|
mappedEntity: "Attribute",
|
|
409
449
|
mappedNamespace: "public",
|
|
450
|
+
columnName: "attributeId",
|
|
410
451
|
onDelete: "RESTRICT",
|
|
411
452
|
onUpdate: "RESTRICT"
|
|
412
453
|
},
|
|
@@ -417,6 +458,7 @@ AttributeValue = __decorateClass(
|
|
|
417
458
|
mappedEntity: "SKUAttributes",
|
|
418
459
|
mappedProperty: "value",
|
|
419
460
|
mappedNamespace: "public",
|
|
461
|
+
columnName: "skuAttributeValuesId",
|
|
420
462
|
onDelete: "CASCADE",
|
|
421
463
|
onUpdate: "RESTRICT"
|
|
422
464
|
}
|
|
@@ -437,12 +479,14 @@ Attribute = __decorateClass(
|
|
|
437
479
|
[
|
|
438
480
|
Entity({
|
|
439
481
|
name: "Attribute",
|
|
482
|
+
tableName: "attribute",
|
|
440
483
|
displayName: "属性",
|
|
441
484
|
properties: [
|
|
442
485
|
{
|
|
443
486
|
name: "name",
|
|
444
487
|
type: PropertyType.string,
|
|
445
|
-
displayName: "属性名称"
|
|
488
|
+
displayName: "属性名称",
|
|
489
|
+
columnName: "name"
|
|
446
490
|
}
|
|
447
491
|
],
|
|
448
492
|
relations: [
|
|
@@ -453,6 +497,7 @@ Attribute = __decorateClass(
|
|
|
453
497
|
mappedEntity: "AttributeValue",
|
|
454
498
|
mappedProperty: "attribute",
|
|
455
499
|
mappedNamespace: "public",
|
|
500
|
+
columnName: "valuesId",
|
|
456
501
|
onDelete: "CASCADE",
|
|
457
502
|
onUpdate: "RESTRICT"
|
|
458
503
|
},
|
|
@@ -463,6 +508,7 @@ Attribute = __decorateClass(
|
|
|
463
508
|
mappedEntity: "SKUAttributes",
|
|
464
509
|
mappedProperty: "attribute",
|
|
465
510
|
mappedNamespace: "public",
|
|
511
|
+
columnName: "skuAttributesId",
|
|
466
512
|
onDelete: "CASCADE",
|
|
467
513
|
onUpdate: "RESTRICT"
|
|
468
514
|
}
|
package/dist/system/index.js
CHANGED
|
@@ -4,59 +4,71 @@ RxDBSync = __decorateClass(
|
|
|
4
4
|
[
|
|
5
5
|
Entity({
|
|
6
6
|
name: "RxDBSync",
|
|
7
|
+
tableName: "rxdb_sync",
|
|
7
8
|
log: false,
|
|
8
9
|
properties: [
|
|
9
10
|
{
|
|
10
11
|
name: "id",
|
|
11
12
|
type: PropertyType.string,
|
|
12
|
-
primary: true
|
|
13
|
+
primary: true,
|
|
14
|
+
columnName: "id"
|
|
13
15
|
},
|
|
14
16
|
{
|
|
15
17
|
name: "namespace",
|
|
16
|
-
type: PropertyType.string
|
|
18
|
+
type: PropertyType.string,
|
|
19
|
+
columnName: "namespace"
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
22
|
name: "entity",
|
|
20
|
-
type: PropertyType.string
|
|
23
|
+
type: PropertyType.string,
|
|
24
|
+
columnName: "entity"
|
|
21
25
|
},
|
|
22
26
|
{
|
|
23
27
|
name: "syncType",
|
|
28
|
+
columnName: "sync_type",
|
|
24
29
|
type: PropertyType.string,
|
|
25
30
|
default: "none"
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
33
|
name: "lastPushedChangeId",
|
|
34
|
+
columnName: "last_pushed_change_id",
|
|
29
35
|
type: PropertyType.integer,
|
|
30
36
|
nullable: true
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
39
|
name: "lastPushedAt",
|
|
40
|
+
columnName: "last_pushed_at",
|
|
34
41
|
type: PropertyType.date,
|
|
35
42
|
nullable: true
|
|
36
43
|
},
|
|
37
44
|
{
|
|
38
45
|
name: "lastPulledAt",
|
|
46
|
+
columnName: "last_pulled_at",
|
|
39
47
|
type: PropertyType.date,
|
|
40
48
|
nullable: true
|
|
41
49
|
},
|
|
42
50
|
{
|
|
43
51
|
name: "lastPullRemoteChangeId",
|
|
52
|
+
columnName: "last_pull_remote_change_id",
|
|
44
53
|
type: PropertyType.integer,
|
|
45
54
|
nullable: true
|
|
46
55
|
},
|
|
47
56
|
{
|
|
48
57
|
name: "enabled",
|
|
49
58
|
type: PropertyType.boolean,
|
|
50
|
-
default: true
|
|
59
|
+
default: true,
|
|
60
|
+
columnName: "enabled"
|
|
51
61
|
},
|
|
52
62
|
{
|
|
53
63
|
name: "createdAt",
|
|
64
|
+
columnName: "created_at",
|
|
54
65
|
type: PropertyType.date,
|
|
55
66
|
readonly: true,
|
|
56
67
|
nullable: true
|
|
57
68
|
},
|
|
58
69
|
{
|
|
59
70
|
name: "updatedAt",
|
|
71
|
+
columnName: "updated_at",
|
|
60
72
|
type: PropertyType.date,
|
|
61
73
|
readonly: true,
|
|
62
74
|
nullable: true
|
|
@@ -93,6 +105,7 @@ RxDBSync = __decorateClass(
|
|
|
93
105
|
mappedEntity: "RxDBBranch",
|
|
94
106
|
onDelete: "CASCADE",
|
|
95
107
|
mappedNamespace: "public",
|
|
108
|
+
columnName: "branchId",
|
|
96
109
|
onUpdate: "RESTRICT"
|
|
97
110
|
}
|
|
98
111
|
],
|
|
@@ -110,20 +123,24 @@ RxDBMigration = __decorateClass(
|
|
|
110
123
|
[
|
|
111
124
|
Entity({
|
|
112
125
|
name: "RxDBMigration",
|
|
126
|
+
tableName: "rxdb_migration",
|
|
113
127
|
log: false,
|
|
114
128
|
properties: [
|
|
115
129
|
{
|
|
116
130
|
name: "id",
|
|
117
131
|
type: PropertyType.integer,
|
|
118
|
-
primary: true
|
|
132
|
+
primary: true,
|
|
133
|
+
columnName: "id"
|
|
119
134
|
},
|
|
120
135
|
{
|
|
121
136
|
name: "name",
|
|
122
137
|
type: PropertyType.string,
|
|
123
|
-
readonly: true
|
|
138
|
+
readonly: true,
|
|
139
|
+
columnName: "name"
|
|
124
140
|
},
|
|
125
141
|
{
|
|
126
142
|
name: "executedAt",
|
|
143
|
+
columnName: "executed_at",
|
|
127
144
|
type: PropertyType.date,
|
|
128
145
|
readonly: true
|
|
129
146
|
}
|
|
@@ -144,15 +161,18 @@ RxDBChange = __decorateClass(
|
|
|
144
161
|
[
|
|
145
162
|
Entity({
|
|
146
163
|
name: "RxDBChange",
|
|
164
|
+
tableName: "rxdb_change",
|
|
147
165
|
log: false,
|
|
148
166
|
properties: [
|
|
149
167
|
{
|
|
150
168
|
name: "id",
|
|
151
169
|
type: PropertyType.integer,
|
|
152
|
-
primary: true
|
|
170
|
+
primary: true,
|
|
171
|
+
columnName: "id"
|
|
153
172
|
},
|
|
154
173
|
{
|
|
155
174
|
name: "remoteId",
|
|
175
|
+
columnName: "remote_id",
|
|
156
176
|
type: PropertyType.integer,
|
|
157
177
|
readonly: true,
|
|
158
178
|
nullable: true
|
|
@@ -160,30 +180,36 @@ RxDBChange = __decorateClass(
|
|
|
160
180
|
{
|
|
161
181
|
name: "type",
|
|
162
182
|
type: PropertyType.string,
|
|
163
|
-
readonly: true
|
|
183
|
+
readonly: true,
|
|
184
|
+
columnName: "type"
|
|
164
185
|
},
|
|
165
186
|
{
|
|
166
187
|
name: "transactionId",
|
|
188
|
+
columnName: "transaction_id",
|
|
167
189
|
type: PropertyType.uuid,
|
|
168
190
|
nullable: true
|
|
169
191
|
},
|
|
170
192
|
{
|
|
171
193
|
name: "namespace",
|
|
172
194
|
type: PropertyType.string,
|
|
173
|
-
readonly: true
|
|
195
|
+
readonly: true,
|
|
196
|
+
columnName: "namespace"
|
|
174
197
|
},
|
|
175
198
|
{
|
|
176
199
|
name: "entity",
|
|
177
200
|
type: PropertyType.string,
|
|
178
|
-
readonly: true
|
|
201
|
+
readonly: true,
|
|
202
|
+
columnName: "entity"
|
|
179
203
|
},
|
|
180
204
|
{
|
|
181
205
|
name: "entityId",
|
|
206
|
+
columnName: "entity_id",
|
|
182
207
|
type: PropertyType.uuid,
|
|
183
208
|
readonly: true
|
|
184
209
|
},
|
|
185
210
|
{
|
|
186
211
|
name: "inversePatch",
|
|
212
|
+
columnName: "inverse_patch",
|
|
187
213
|
type: PropertyType.json,
|
|
188
214
|
readonly: true,
|
|
189
215
|
nullable: true
|
|
@@ -192,32 +218,38 @@ RxDBChange = __decorateClass(
|
|
|
192
218
|
name: "patch",
|
|
193
219
|
type: PropertyType.json,
|
|
194
220
|
readonly: true,
|
|
195
|
-
nullable: true
|
|
221
|
+
nullable: true,
|
|
222
|
+
columnName: "patch"
|
|
196
223
|
},
|
|
197
224
|
{
|
|
198
225
|
name: "createdAt",
|
|
226
|
+
columnName: "created_at",
|
|
199
227
|
type: PropertyType.date,
|
|
200
228
|
default: "CURRENT_TIMESTAMP",
|
|
201
229
|
readonly: true
|
|
202
230
|
},
|
|
203
231
|
{
|
|
204
232
|
name: "updatedAt",
|
|
233
|
+
columnName: "updated_at",
|
|
205
234
|
type: PropertyType.date,
|
|
206
235
|
default: "CURRENT_TIMESTAMP",
|
|
207
236
|
readonly: true
|
|
208
237
|
},
|
|
209
238
|
{
|
|
210
239
|
name: "revertChangedAt",
|
|
240
|
+
columnName: "revert_changed_at",
|
|
211
241
|
type: PropertyType.date,
|
|
212
242
|
nullable: true
|
|
213
243
|
},
|
|
214
244
|
{
|
|
215
245
|
name: "revertChangeId",
|
|
246
|
+
columnName: "revert_change_id",
|
|
216
247
|
type: PropertyType.integer,
|
|
217
248
|
nullable: true
|
|
218
249
|
},
|
|
219
250
|
{
|
|
220
251
|
name: "redoInvalidatedAt",
|
|
252
|
+
columnName: "redo_invalidated_at",
|
|
221
253
|
type: PropertyType.date,
|
|
222
254
|
nullable: true
|
|
223
255
|
}
|
|
@@ -229,6 +261,7 @@ RxDBChange = __decorateClass(
|
|
|
229
261
|
mappedEntity: "RxDBBranch",
|
|
230
262
|
nullable: true,
|
|
231
263
|
mappedNamespace: "public",
|
|
264
|
+
columnName: "branchId",
|
|
232
265
|
onDelete: "SET NULL",
|
|
233
266
|
onUpdate: "RESTRICT"
|
|
234
267
|
}
|
|
@@ -248,42 +281,50 @@ RxDBBranch = __decorateClass(
|
|
|
248
281
|
[
|
|
249
282
|
Entity({
|
|
250
283
|
name: "RxDBBranch",
|
|
284
|
+
tableName: "rxdb_branch",
|
|
251
285
|
log: false,
|
|
252
286
|
properties: [
|
|
253
287
|
{
|
|
254
288
|
name: "id",
|
|
255
289
|
type: PropertyType.string,
|
|
256
290
|
primary: true,
|
|
257
|
-
unique: true
|
|
291
|
+
unique: true,
|
|
292
|
+
columnName: "id"
|
|
258
293
|
},
|
|
259
294
|
{
|
|
260
295
|
name: "activated",
|
|
261
296
|
type: PropertyType.boolean,
|
|
262
|
-
default: false
|
|
297
|
+
default: false,
|
|
298
|
+
columnName: "activated"
|
|
263
299
|
},
|
|
264
300
|
{
|
|
265
301
|
name: "fromChangeId",
|
|
302
|
+
columnName: "from_change_id",
|
|
266
303
|
type: PropertyType.number,
|
|
267
304
|
nullable: true
|
|
268
305
|
},
|
|
269
306
|
{
|
|
270
307
|
name: "local",
|
|
271
308
|
type: PropertyType.boolean,
|
|
272
|
-
default: true
|
|
309
|
+
default: true,
|
|
310
|
+
columnName: "local"
|
|
273
311
|
},
|
|
274
312
|
{
|
|
275
313
|
name: "remote",
|
|
276
314
|
type: PropertyType.boolean,
|
|
277
|
-
default: false
|
|
315
|
+
default: false,
|
|
316
|
+
columnName: "remote"
|
|
278
317
|
},
|
|
279
318
|
{
|
|
280
319
|
name: "createdAt",
|
|
320
|
+
columnName: "created_at",
|
|
281
321
|
type: PropertyType.date,
|
|
282
322
|
readonly: true,
|
|
283
323
|
nullable: true
|
|
284
324
|
},
|
|
285
325
|
{
|
|
286
326
|
name: "updatedAt",
|
|
327
|
+
columnName: "updated_at",
|
|
287
328
|
type: PropertyType.date,
|
|
288
329
|
readonly: true,
|
|
289
330
|
nullable: true
|
|
@@ -296,6 +337,7 @@ RxDBBranch = __decorateClass(
|
|
|
296
337
|
mappedEntity: "RxDBChange",
|
|
297
338
|
mappedProperty: "branch",
|
|
298
339
|
mappedNamespace: "public",
|
|
340
|
+
columnName: "changesId",
|
|
299
341
|
onDelete: "CASCADE",
|
|
300
342
|
onUpdate: "RESTRICT"
|
|
301
343
|
},
|
|
@@ -305,6 +347,7 @@ RxDBBranch = __decorateClass(
|
|
|
305
347
|
mappedEntity: "RxDBSync",
|
|
306
348
|
mappedProperty: "branch",
|
|
307
349
|
mappedNamespace: "public",
|
|
350
|
+
columnName: "syncsId",
|
|
308
351
|
onDelete: "CASCADE",
|
|
309
352
|
onUpdate: "RESTRICT"
|
|
310
353
|
},
|
|
@@ -314,6 +357,7 @@ RxDBBranch = __decorateClass(
|
|
|
314
357
|
mappedEntity: "RxDBBranch",
|
|
315
358
|
mappedProperty: "parent",
|
|
316
359
|
mappedNamespace: "public",
|
|
360
|
+
columnName: "childrenId",
|
|
317
361
|
onDelete: "CASCADE",
|
|
318
362
|
onUpdate: "RESTRICT"
|
|
319
363
|
},
|
|
@@ -323,6 +367,7 @@ RxDBBranch = __decorateClass(
|
|
|
323
367
|
mappedEntity: "RxDBBranch",
|
|
324
368
|
nullable: true,
|
|
325
369
|
mappedNamespace: "public",
|
|
370
|
+
columnName: "parentId",
|
|
326
371
|
onDelete: "SET NULL",
|
|
327
372
|
onUpdate: "RESTRICT"
|
|
328
373
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiao/rxdb-test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
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.
|
|
42
|
+
"@aiao/rxdb": "0.0.11"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@aiao/rxdb-client-generator": "0.0.
|
|
45
|
+
"@aiao/rxdb-client-generator": "0.0.11"
|
|
46
46
|
}
|
|
47
47
|
}
|