@aiao/rxdb-test 0.0.15 → 0.0.17
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.
- package/README.md +30 -1
- package/dist/entities/FileLarge.d.ts +339 -0
- package/dist/entities/FileLarge.js +77 -0
- package/dist/entities/FileNode.d.ts +335 -0
- package/dist/entities/FileNode.js +77 -0
- package/dist/entities/MenuLarge.d.ts +294 -0
- package/dist/entities/MenuLarge.js +41 -0
- package/dist/entities/MenuSimple.d.ts +290 -0
- package/dist/entities/MenuSimple.js +41 -0
- package/dist/entities/Todo.d.ts +165 -0
- package/dist/entities/Todo.js +34 -0
- package/dist/entities/TypeDemo.d.ts +289 -0
- package/dist/entities/TypeDemo.js +137 -0
- package/dist/entities/index.d.ts +14 -1655
- package/dist/entities/index.js +6 -360
- package/dist/graph/index.d.ts +1 -2
- package/dist/graph/index.js +1 -1
- package/dist/shop/Attribute.d.ts +992 -0
- package/dist/shop/Attribute.js +50 -0
- package/dist/shop/AttributeValue.d.ts +999 -0
- package/dist/shop/AttributeValue.js +51 -0
- package/dist/shop/Category.d.ts +772 -0
- package/dist/shop/Category.js +52 -0
- package/dist/shop/IdCard.d.ts +647 -0
- package/dist/shop/IdCard.js +43 -0
- package/dist/shop/Order.d.ts +690 -0
- package/dist/shop/Order.js +66 -0
- package/dist/shop/OrderItem.d.ts +665 -0
- package/dist/shop/OrderItem.js +76 -0
- package/dist/shop/Product.d.ts +761 -0
- package/dist/shop/Product.js +58 -0
- package/dist/shop/SKU.d.ts +634 -0
- package/dist/shop/SKU.js +74 -0
- package/dist/shop/SKUAttributes.d.ts +625 -0
- package/dist/shop/SKUAttributes.js +56 -0
- package/dist/shop/User.d.ts +679 -0
- package/dist/shop/User.js +74 -0
- package/dist/shop/index.d.ts +52 -2990
- package/dist/shop/index.js +10 -528
- package/dist/system/RxDBBranch.d.ts +396 -0
- package/dist/system/RxDBBranch.js +106 -0
- package/dist/system/RxDBChange.d.ts +361 -0
- package/dist/system/RxDBChange.js +123 -0
- package/dist/system/RxDBMigration.d.ts +167 -0
- package/dist/system/RxDBMigration.js +40 -0
- package/dist/system/RxDBSync.d.ts +339 -0
- package/dist/system/RxDBSync.js +122 -0
- package/dist/system/index.d.ts +9 -1240
- package/dist/system/index.js +4 -384
- package/package.json +3 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Entity, EntityBase, PropertyType, RelationKind, __decorateClass } from '@aiao/rxdb';
|
|
2
|
+
let Attribute = class extends EntityBase {};
|
|
3
|
+
Attribute = __decorateClass(
|
|
4
|
+
[
|
|
5
|
+
Entity({
|
|
6
|
+
name: "Attribute",
|
|
7
|
+
namespace: "shop",
|
|
8
|
+
tableName: "attribute",
|
|
9
|
+
displayName: "属性",
|
|
10
|
+
properties: [
|
|
11
|
+
{
|
|
12
|
+
name: "name",
|
|
13
|
+
type: PropertyType.string,
|
|
14
|
+
displayName: "属性名称",
|
|
15
|
+
columnName: "name"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
relations: [
|
|
19
|
+
{
|
|
20
|
+
name: "values",
|
|
21
|
+
displayName: "属性值列表",
|
|
22
|
+
kind: RelationKind.ONE_TO_MANY,
|
|
23
|
+
mappedEntity: "AttributeValue",
|
|
24
|
+
mappedProperty: "attribute",
|
|
25
|
+
mappedNamespace: "shop",
|
|
26
|
+
onDelete: "CASCADE",
|
|
27
|
+
onUpdate: "RESTRICT"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "skuAttributes",
|
|
31
|
+
displayName: "SKU属性关联",
|
|
32
|
+
kind: RelationKind.ONE_TO_MANY,
|
|
33
|
+
mappedEntity: "SKUAttributes",
|
|
34
|
+
mappedProperty: "attribute",
|
|
35
|
+
mappedNamespace: "shop",
|
|
36
|
+
onDelete: "CASCADE",
|
|
37
|
+
onUpdate: "RESTRICT"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
repository: "Repository",
|
|
41
|
+
indexes: [],
|
|
42
|
+
computedProperties: [],
|
|
43
|
+
extends: [
|
|
44
|
+
"EntityBase"
|
|
45
|
+
]
|
|
46
|
+
})
|
|
47
|
+
],
|
|
48
|
+
Attribute
|
|
49
|
+
);
|
|
50
|
+
export { Attribute };
|