test-entity-library-asm 3.3.6 → 3.3.7

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.
@@ -7,6 +7,7 @@ import { Partner } from "./Partner";
7
7
  import { PartnerRole } from "./PartnerRole";
8
8
  import { Plan } from "./Plan";
9
9
  import { ProductTopping } from "./ProductTopping";
10
+ import { ReceiptConfig } from "..";
10
11
  export declare class Company {
11
12
  id: number;
12
13
  code: string;
@@ -29,4 +30,5 @@ export declare class Company {
29
30
  partners_company: Partner[];
30
31
  roles_company: PartnerRole[];
31
32
  plans_company: Plan[];
33
+ receipts_company_config: ReceiptConfig[];
32
34
  }
@@ -21,6 +21,7 @@ var Partner_1 = require("./Partner");
21
21
  var PartnerRole_1 = require("./PartnerRole");
22
22
  var Plan_1 = require("./Plan");
23
23
  var ProductTopping_1 = require("./ProductTopping");
24
+ var __1 = require("..");
24
25
  var Company = /** @class */ (function () {
25
26
  function Company() {
26
27
  }
@@ -170,6 +171,10 @@ var Company = /** @class */ (function () {
170
171
  (0, typeorm_1.OneToMany)(function () { return Plan_1.Plan; }, function (plan) { return plan.company; }),
171
172
  __metadata("design:type", Array)
172
173
  ], Company.prototype, "plans_company", void 0);
174
+ __decorate([
175
+ (0, typeorm_1.OneToMany)(function () { return __1.ReceiptConfig; }, function (receiptConfig) { return receiptConfig.company; }),
176
+ __metadata("design:type", Array)
177
+ ], Company.prototype, "receipts_company_config", void 0);
173
178
  Company = __decorate([
174
179
  (0, typeorm_1.Entity)({
175
180
  comment: "Tabla creada para las empresas de comida rápida que deseen registrarse en la plataforma.",
@@ -1,4 +1,4 @@
1
- import { DiscountCodeUser, LocalPlan, PosSystem, RequestLocal } from "..";
1
+ import { DiscountCodeUser, LocalPlan, PosSystem, ReceiptConfig, RequestLocal } from "..";
2
2
  import { BusinessTypeProduct } from "./BusinessTypeProduct";
3
3
  import { Category } from "./Category";
4
4
  import { City } from "./City";
@@ -34,4 +34,5 @@ export declare class Local {
34
34
  business_type_products: BusinessTypeProduct[];
35
35
  discount_code_locals: DiscountCodeUser[];
36
36
  locals_plan: LocalPlan[];
37
+ receipts_local_config: ReceiptConfig[];
37
38
  }
@@ -215,6 +215,10 @@ var Local = /** @class */ (function () {
215
215
  (0, typeorm_1.OneToMany)(function () { return __1.LocalPlan; }, function (localPlan) { return localPlan.local; }),
216
216
  __metadata("design:type", Array)
217
217
  ], Local.prototype, "locals_plan", void 0);
218
+ __decorate([
219
+ (0, typeorm_1.OneToMany)(function () { return __1.ReceiptConfig; }, function (receiptConfig) { return receiptConfig.local; }),
220
+ __metadata("design:type", Array)
221
+ ], Local.prototype, "receipts_local_config", void 0);
218
222
  Local = __decorate([
219
223
  (0, typeorm_1.Entity)({ comment: "Locales disponibles de las empresas (company)." })
220
224
  ], Local);
@@ -0,0 +1,18 @@
1
+ import { Company, Local, User } from "..";
2
+ export declare class ReceiptConfig {
3
+ id: number;
4
+ company: Company;
5
+ local: Local;
6
+ is_logo: number;
7
+ logo_type: number;
8
+ is_address: number;
9
+ is_phone: number;
10
+ format_date: string;
11
+ custom_message_below: any | null;
12
+ custom_message_top: any | null;
13
+ details: any | null;
14
+ created: Date;
15
+ updated: Date | null;
16
+ updated_by: User;
17
+ status: number;
18
+ }
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ReceiptConfig = void 0;
13
+ var typeorm_1 = require("typeorm");
14
+ var __1 = require("..");
15
+ var dateTransformer_1 = require("../transformers/dateTransformer");
16
+ var jsonTransformer_1 = require("../transformers/jsonTransformer");
17
+ var ReceiptConfig = /** @class */ (function () {
18
+ function ReceiptConfig() {
19
+ }
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)({
22
+ type: "int",
23
+ comment: "ID único de cada registro.",
24
+ }),
25
+ __metadata("design:type", Number)
26
+ ], ReceiptConfig.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.ManyToOne)(function () { return __1.Company; }, function (company) { return company.receipts_company_config; }, {
29
+ onDelete: "CASCADE",
30
+ onUpdate: "NO ACTION",
31
+ }),
32
+ (0, typeorm_1.JoinColumn)({ name: "company" }),
33
+ __metadata("design:type", __1.Company)
34
+ ], ReceiptConfig.prototype, "company", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.ManyToOne)(function () { return __1.Local; }, function (local) { return local.receipts_local_config; }, {
37
+ onDelete: "CASCADE",
38
+ onUpdate: "NO ACTION",
39
+ }),
40
+ (0, typeorm_1.JoinColumn)({ name: "local" }),
41
+ __metadata("design:type", __1.Local)
42
+ ], ReceiptConfig.prototype, "local", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({
45
+ default: 1,
46
+ type: "int",
47
+ width: 1,
48
+ comment: "Para saber sí mostramos el logo en la factura:\r\n0: No.\r\n1: Sí.",
49
+ }),
50
+ __metadata("design:type", Number)
51
+ ], ReceiptConfig.prototype, "is_logo", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({
54
+ default: 1,
55
+ type: "int",
56
+ width: 1,
57
+ comment: "Columna para saber si el logo va a ir redondeado o no:\r\n1. Redondeado.\r\n2. Cuadrado.",
58
+ }),
59
+ __metadata("design:type", Number)
60
+ ], ReceiptConfig.prototype, "logo_type", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({
63
+ default: 1,
64
+ type: "int",
65
+ width: 1,
66
+ comment: "Para saber sí mostramos la dirección del restaurante:\r\n0: No.\r\n1: Sí.",
67
+ }),
68
+ __metadata("design:type", Number)
69
+ ], ReceiptConfig.prototype, "is_address", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({
72
+ default: 1,
73
+ type: "int",
74
+ width: 1,
75
+ comment: "Para saber sí mostramos la el número de teléfono del restaurante:\r\n0: No.\r\n1: Sí.",
76
+ }),
77
+ __metadata("design:type", Number)
78
+ ], ReceiptConfig.prototype, "is_phone", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({
81
+ length: 50,
82
+ type: "varchar",
83
+ default: "yyyy-mm-dd hh:mm:ss",
84
+ comment: "Formato de la fecha que se va a mostrar. Este formato viene de la interfaz TFormatTypeDate que está en utils.ts",
85
+ }),
86
+ __metadata("design:type", String)
87
+ ], ReceiptConfig.prototype, "format_date", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)({
90
+ type: "text",
91
+ nullable: true,
92
+ default: null,
93
+ transformer: jsonTransformer_1.jsonTransformer,
94
+ comment: "Comentarios a mostrar en la factura, esto será un elemento de tipo html por si el usuario lo quiere personalizar.",
95
+ }),
96
+ __metadata("design:type", Object)
97
+ ], ReceiptConfig.prototype, "custom_message_below", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({
100
+ type: "text",
101
+ nullable: true,
102
+ default: null,
103
+ transformer: jsonTransformer_1.jsonTransformer,
104
+ comment: "Comentarios a mostrar en la factura, esto será un elemento de tipo html por si el usuario lo quiere personalizar.",
105
+ }),
106
+ __metadata("design:type", Object)
107
+ ], ReceiptConfig.prototype, "custom_message_top", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.Column)({
110
+ type: "mediumtext",
111
+ nullable: true,
112
+ default: null,
113
+ transformer: jsonTransformer_1.jsonTransformer,
114
+ comment: "Columna creada por si se necesitan agregar más elementos adicionales para personalizar la factura.",
115
+ }),
116
+ __metadata("design:type", Object)
117
+ ], ReceiptConfig.prototype, "details", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({
120
+ type: "datetime",
121
+ comment: "Fecha de creación del registro.",
122
+ transformer: new dateTransformer_1.DateTransformer(),
123
+ }),
124
+ __metadata("design:type", Date)
125
+ ], ReceiptConfig.prototype, "created", void 0);
126
+ __decorate([
127
+ (0, typeorm_1.Column)({
128
+ type: "datetime",
129
+ nullable: true,
130
+ default: null,
131
+ comment: "Fecha de actualización del registro.",
132
+ transformer: new dateTransformer_1.DateTransformer(),
133
+ }),
134
+ __metadata("design:type", Object)
135
+ ], ReceiptConfig.prototype, "updated", void 0);
136
+ __decorate([
137
+ (0, typeorm_1.ManyToOne)(function () { return __1.User; }, function (user) { return user.receipts_user_config; }, {
138
+ onDelete: "NO ACTION",
139
+ onUpdate: "NO ACTION",
140
+ }),
141
+ (0, typeorm_1.JoinColumn)({ name: "updated_by" }),
142
+ __metadata("design:type", __1.User)
143
+ ], ReceiptConfig.prototype, "updated_by", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.Column)({
146
+ default: 1,
147
+ type: "int",
148
+ width: 1,
149
+ comment: "Estado en el que se encuentra el registro:\r\n0: Inactivo.\r\n1: Activo.",
150
+ }),
151
+ __metadata("design:type", Number)
152
+ ], ReceiptConfig.prototype, "status", void 0);
153
+ ReceiptConfig = __decorate([
154
+ (0, typeorm_1.Entity)({
155
+ comment: "Personalización de las facturas de los pedidos para los restaurantes/empresas.",
156
+ name: "receipt_config",
157
+ })
158
+ ], ReceiptConfig);
159
+ return ReceiptConfig;
160
+ }());
161
+ exports.ReceiptConfig = ReceiptConfig;
@@ -1,4 +1,4 @@
1
- import { RequestLocalPayment, UserPaymentMethod } from "..";
1
+ import { ReceiptConfig, RequestLocalPayment, UserPaymentMethod } from "..";
2
2
  import { City } from "./City";
3
3
  import { CodeRedemptionHistoryUser } from "./CodeRedemptionHistoryUser";
4
4
  import { Local } from "./Local";
@@ -36,4 +36,5 @@ export declare class User {
36
36
  user_favorite_squares: Square[];
37
37
  user_favorite_locals: Local[];
38
38
  user_favorite_products: Product[];
39
+ receipts_user_config: ReceiptConfig[];
39
40
  }
@@ -230,6 +230,10 @@ var User = /** @class */ (function () {
230
230
  }),
231
231
  __metadata("design:type", Array)
232
232
  ], User.prototype, "user_favorite_products", void 0);
233
+ __decorate([
234
+ (0, typeorm_1.OneToMany)(function () { return __1.ReceiptConfig; }, function (receiptConfig) { return receiptConfig.updated_by; }),
235
+ __metadata("design:type", Array)
236
+ ], User.prototype, "receipts_user_config", void 0);
233
237
  User = __decorate([
234
238
  (0, typeorm_1.Entity)({ comment: "Usuarios registrados en la plataforma." })
235
239
  ], User);
@@ -53,6 +53,7 @@ export { RequestLocal } from "./entities/RequestLocal";
53
53
  export { RequestLocalHistory } from "./entities/RequestLocalHistory";
54
54
  export { UserPaymentMethod } from "./entities/UserPaymentMethod";
55
55
  export { RequestLocalPayment } from "./entities/RequestLocalPayment";
56
+ export { ReceiptConfig } from "./entities/ReceiptConfig";
56
57
  export { LocalsCompany } from "./views/LocalsCompany";
57
58
  export { VerifyLocals } from "./views/VerifyLocals";
58
59
  export { MasterNotifications } from "./views/MasterNotifications";
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.ToppingImage = exports.ProductDate = exports.ProductSchedule = exports.CategoryDate = exports.Bank = exports.ServicePlan = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.Square = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
18
- exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = exports.LocalsCompany = exports.RequestLocalPayment = exports.UserPaymentMethod = exports.RequestLocalHistory = exports.RequestLocal = exports.PartnerSession = void 0;
18
+ exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = exports.LocalsCompany = exports.ReceiptConfig = exports.RequestLocalPayment = exports.UserPaymentMethod = exports.RequestLocalHistory = exports.RequestLocal = exports.PartnerSession = void 0;
19
19
  var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
20
20
  Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
21
21
  var Category_1 = require("./entities/Category");
@@ -126,6 +126,8 @@ var UserPaymentMethod_1 = require("./entities/UserPaymentMethod");
126
126
  Object.defineProperty(exports, "UserPaymentMethod", { enumerable: true, get: function () { return UserPaymentMethod_1.UserPaymentMethod; } });
127
127
  var RequestLocalPayment_1 = require("./entities/RequestLocalPayment");
128
128
  Object.defineProperty(exports, "RequestLocalPayment", { enumerable: true, get: function () { return RequestLocalPayment_1.RequestLocalPayment; } });
129
+ var ReceiptConfig_1 = require("./entities/ReceiptConfig");
130
+ Object.defineProperty(exports, "ReceiptConfig", { enumerable: true, get: function () { return ReceiptConfig_1.ReceiptConfig; } });
129
131
  var LocalsCompany_1 = require("./views/LocalsCompany");
130
132
  Object.defineProperty(exports, "LocalsCompany", { enumerable: true, get: function () { return LocalsCompany_1.LocalsCompany; } });
131
133
  var VerifyLocals_1 = require("./views/VerifyLocals");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,7 @@ import { Partner } from "./Partner";
17
17
  import { PartnerRole } from "./PartnerRole";
18
18
  import { Plan } from "./Plan";
19
19
  import { ProductTopping } from "./ProductTopping";
20
+ import { ReceiptConfig } from "..";
20
21
 
21
22
  @Entity({
22
23
  comment:
@@ -158,4 +159,7 @@ export class Company {
158
159
 
159
160
  @OneToMany(() => Plan, (plan) => plan.company)
160
161
  plans_company: Plan[];
162
+
163
+ @OneToMany(() => ReceiptConfig, (receiptConfig) => receiptConfig.company)
164
+ receipts_company_config: ReceiptConfig[];
161
165
  }
@@ -8,7 +8,13 @@ import {
8
8
  OneToMany,
9
9
  PrimaryGeneratedColumn,
10
10
  } from "typeorm";
11
- import { DiscountCodeUser, LocalPlan, PosSystem, RequestLocal } from "..";
11
+ import {
12
+ DiscountCodeUser,
13
+ LocalPlan,
14
+ PosSystem,
15
+ ReceiptConfig,
16
+ RequestLocal,
17
+ } from "..";
12
18
  import { DateTransformer } from "../transformers/dateTransformer";
13
19
  import { jsonTransformer } from "../transformers/jsonTransformer";
14
20
  import { BusinessTypeProduct } from "./BusinessTypeProduct";
@@ -198,4 +204,7 @@ export class Local {
198
204
 
199
205
  @OneToMany(() => LocalPlan, (localPlan) => localPlan.local)
200
206
  locals_plan: LocalPlan[];
207
+
208
+ @OneToMany(() => ReceiptConfig, (receiptConfig) => receiptConfig.local)
209
+ receipts_local_config: ReceiptConfig[];
201
210
  }
@@ -0,0 +1,144 @@
1
+ import {
2
+ Column,
3
+ Entity,
4
+ JoinColumn,
5
+ ManyToOne,
6
+ PrimaryGeneratedColumn,
7
+ } from "typeorm";
8
+ import { Company, Local, User } from "..";
9
+ import { DateTransformer } from "../transformers/dateTransformer";
10
+ import { jsonTransformer } from "../transformers/jsonTransformer";
11
+
12
+ @Entity({
13
+ comment:
14
+ "Personalización de las facturas de los pedidos para los restaurantes/empresas.",
15
+ name: "receipt_config",
16
+ })
17
+ export class ReceiptConfig {
18
+ @PrimaryGeneratedColumn({
19
+ type: "int",
20
+ comment: "ID único de cada registro.",
21
+ })
22
+ id: number;
23
+
24
+ @ManyToOne(() => Company, (company) => company.receipts_company_config, {
25
+ onDelete: "CASCADE",
26
+ onUpdate: "NO ACTION",
27
+ })
28
+ @JoinColumn({ name: "company" })
29
+ company: Company;
30
+
31
+ @ManyToOne(() => Local, (local) => local.receipts_local_config, {
32
+ onDelete: "CASCADE",
33
+ onUpdate: "NO ACTION",
34
+ })
35
+ @JoinColumn({ name: "local" })
36
+ local: Local;
37
+
38
+ @Column({
39
+ default: 1,
40
+ type: "int",
41
+ width: 1,
42
+ comment:
43
+ "Para saber sí mostramos el logo en la factura:\r\n0: No.\r\n1: Sí.",
44
+ })
45
+ is_logo: number;
46
+
47
+ @Column({
48
+ default: 1,
49
+ type: "int",
50
+ width: 1,
51
+ comment:
52
+ "Columna para saber si el logo va a ir redondeado o no:\r\n1. Redondeado.\r\n2. Cuadrado.",
53
+ })
54
+ logo_type: number;
55
+
56
+ @Column({
57
+ default: 1,
58
+ type: "int",
59
+ width: 1,
60
+ comment:
61
+ "Para saber sí mostramos la dirección del restaurante:\r\n0: No.\r\n1: Sí.",
62
+ })
63
+ is_address: number;
64
+
65
+ @Column({
66
+ default: 1,
67
+ type: "int",
68
+ width: 1,
69
+ comment:
70
+ "Para saber sí mostramos la el número de teléfono del restaurante:\r\n0: No.\r\n1: Sí.",
71
+ })
72
+ is_phone: number;
73
+
74
+ @Column({
75
+ length: 50,
76
+ type: "varchar",
77
+ default: "yyyy-mm-dd hh:mm:ss",
78
+ comment:
79
+ "Formato de la fecha que se va a mostrar. Este formato viene de la interfaz TFormatTypeDate que está en utils.ts",
80
+ })
81
+ format_date: string;
82
+
83
+ @Column({
84
+ type: "text",
85
+ nullable: true,
86
+ default: null,
87
+ transformer: jsonTransformer,
88
+ comment:
89
+ "Comentarios a mostrar en la factura, esto será un elemento de tipo html por si el usuario lo quiere personalizar.",
90
+ })
91
+ custom_message_below: any | null;
92
+
93
+ @Column({
94
+ type: "text",
95
+ nullable: true,
96
+ default: null,
97
+ transformer: jsonTransformer,
98
+ comment:
99
+ "Comentarios a mostrar en la factura, esto será un elemento de tipo html por si el usuario lo quiere personalizar.",
100
+ })
101
+ custom_message_top: any | null;
102
+
103
+ @Column({
104
+ type: "mediumtext",
105
+ nullable: true,
106
+ default: null,
107
+ transformer: jsonTransformer,
108
+ comment:
109
+ "Columna creada por si se necesitan agregar más elementos adicionales para personalizar la factura.",
110
+ })
111
+ details: any | null;
112
+
113
+ @Column({
114
+ type: "datetime",
115
+ comment: "Fecha de creación del registro.",
116
+ transformer: new DateTransformer(),
117
+ })
118
+ created: Date;
119
+
120
+ @Column({
121
+ type: "datetime",
122
+ nullable: true,
123
+ default: null,
124
+ comment: "Fecha de actualización del registro.",
125
+ transformer: new DateTransformer(),
126
+ })
127
+ updated: Date | null;
128
+
129
+ @ManyToOne(() => User, (user) => user.receipts_user_config, {
130
+ onDelete: "NO ACTION",
131
+ onUpdate: "NO ACTION",
132
+ })
133
+ @JoinColumn({ name: "updated_by" })
134
+ updated_by: User;
135
+
136
+ @Column({
137
+ default: 1,
138
+ type: "int",
139
+ width: 1,
140
+ comment:
141
+ "Estado en el que se encuentra el registro:\r\n0: Inactivo.\r\n1: Activo.",
142
+ })
143
+ status: number;
144
+ }
@@ -8,7 +8,7 @@ import {
8
8
  OneToMany,
9
9
  PrimaryGeneratedColumn,
10
10
  } from "typeorm";
11
- import { RequestLocalPayment, UserPaymentMethod } from "..";
11
+ import { ReceiptConfig, RequestLocalPayment, UserPaymentMethod } from "..";
12
12
  import { DateTransformer } from "../transformers/dateTransformer";
13
13
  import { City } from "./City";
14
14
  import { CodeRedemptionHistoryUser } from "./CodeRedemptionHistoryUser";
@@ -217,4 +217,10 @@ export class User {
217
217
  },
218
218
  })
219
219
  user_favorite_products: Product[];
220
+
221
+ @OneToMany(
222
+ () => ReceiptConfig,
223
+ (receiptConfig) => receiptConfig.updated_by
224
+ )
225
+ receipts_user_config: ReceiptConfig[];
220
226
  }
@@ -53,6 +53,7 @@ export { RequestLocal } from "./entities/RequestLocal";
53
53
  export { RequestLocalHistory } from "./entities/RequestLocalHistory";
54
54
  export { UserPaymentMethod } from "./entities/UserPaymentMethod";
55
55
  export { RequestLocalPayment } from "./entities/RequestLocalPayment";
56
+ export { ReceiptConfig } from "./entities/ReceiptConfig";
56
57
 
57
58
  export { LocalsCompany } from "./views/LocalsCompany";
58
59
  export { VerifyLocals } from "./views/VerifyLocals";