@reachu/database 1.0.91 → 1.0.92
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,5 +1,6 @@
|
|
|
1
1
|
import { Product } from './Product.entity';
|
|
2
2
|
import User from './User';
|
|
3
|
+
import ChannelUser from './ChannelUser';
|
|
3
4
|
export default class ImportedProduct {
|
|
4
5
|
id: number;
|
|
5
6
|
deletedAt: Date;
|
|
@@ -11,4 +12,5 @@ export default class ImportedProduct {
|
|
|
11
12
|
profileId?: string;
|
|
12
13
|
profileWooId?: string;
|
|
13
14
|
woltId?: string;
|
|
15
|
+
channelUser: ChannelUser;
|
|
14
16
|
}
|
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const Product_entity_1 = require("./Product.entity");
|
|
17
17
|
const User_1 = __importDefault(require("./User"));
|
|
18
|
+
const ChannelUser_1 = __importDefault(require("./ChannelUser"));
|
|
18
19
|
let ImportedProduct = class ImportedProduct {
|
|
19
20
|
};
|
|
20
21
|
__decorate([
|
|
@@ -59,6 +60,11 @@ __decorate([
|
|
|
59
60
|
typeorm_1.Column('varchar', { nullable: true }),
|
|
60
61
|
__metadata("design:type", String)
|
|
61
62
|
], ImportedProduct.prototype, "woltId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
typeorm_1.ManyToOne(() => User_1.default, { nullable: true }),
|
|
65
|
+
typeorm_1.JoinColumn(),
|
|
66
|
+
__metadata("design:type", ChannelUser_1.default)
|
|
67
|
+
], ImportedProduct.prototype, "channelUser", void 0);
|
|
62
68
|
ImportedProduct = __decorate([
|
|
63
69
|
typeorm_1.Entity()
|
|
64
70
|
], ImportedProduct);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportedProduct.js","sourceRoot":"","sources":["../../src/entity/ImportedProduct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA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AAI,EAAE,CAAC;IACzC,oBAAU,EAAE;8BACA,qBAAW;oDAAC;AAnCN,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAoCnC;kBApCoB,eAAe"}
|
|
@@ -2417,8 +2417,8 @@
|
|
|
2417
2417
|
"affectsGlobalScope": false
|
|
2418
2418
|
},
|
|
2419
2419
|
"../src/entity/importedproduct.ts": {
|
|
2420
|
-
"version": "
|
|
2421
|
-
"signature": "
|
|
2420
|
+
"version": "249c42f3bc4e2a40d07359e505838972fef7387c208653281f304458a755a27e",
|
|
2421
|
+
"signature": "e9b48b9b5b47f7a3626ba1ccec58d7fc386dbf08561909014a88e31bd29ce697",
|
|
2422
2422
|
"affectsGlobalScope": false
|
|
2423
2423
|
},
|
|
2424
2424
|
"../src/staticdata/currency.ts": {
|
|
@@ -5476,6 +5476,7 @@
|
|
|
5476
5476
|
],
|
|
5477
5477
|
"../src/entity/importedproduct.ts": [
|
|
5478
5478
|
"../node_modules/typeorm/index.d.ts",
|
|
5479
|
+
"../src/entity/channeluser.ts",
|
|
5479
5480
|
"../src/entity/product.entity.ts",
|
|
5480
5481
|
"../src/entity/user.ts"
|
|
5481
5482
|
],
|
|
@@ -8313,6 +8314,7 @@
|
|
|
8313
8314
|
"../src/entity/product.entity.ts"
|
|
8314
8315
|
],
|
|
8315
8316
|
"../src/entity/importedproduct.ts": [
|
|
8317
|
+
"../src/entity/channeluser.ts",
|
|
8316
8318
|
"../src/entity/product.entity.ts",
|
|
8317
8319
|
"../src/entity/user.ts"
|
|
8318
8320
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.92",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.92",
|
|
25
|
+
"@reachu/utils": "1.0.92",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
} from 'typeorm';
|
|
9
9
|
import { Product } from './Product.entity';
|
|
10
10
|
import User from './User';
|
|
11
|
+
import ChannelUser from './ChannelUser';
|
|
11
12
|
|
|
12
13
|
@Entity()
|
|
13
14
|
export default class ImportedProduct {
|
|
@@ -42,4 +43,8 @@ export default class ImportedProduct {
|
|
|
42
43
|
|
|
43
44
|
@Column('varchar', { nullable: true })
|
|
44
45
|
woltId?: string;
|
|
46
|
+
|
|
47
|
+
@ManyToOne(() => User, { nullable: true })
|
|
48
|
+
@JoinColumn()
|
|
49
|
+
channelUser: ChannelUser;
|
|
45
50
|
}
|