@admc-go-th/admc-library 1.0.109 → 1.0.110

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,93 +1,93 @@
1
- import {
2
- Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasOne, HasMany
3
- } from "sequelize-typescript";
4
- import { menu } from "./menu";
5
- import { authItemChild } from "./authItemChild";
6
-
7
- export interface authItemAttributes {
8
- keyName: string;
9
- type: number;
10
- display: string;
11
- description?: string;
12
- status?: number;
13
- createdBy?: string;
14
- createdDate?: Date;
15
- updatedBy?: string;
16
- updatedDate?: Date;
17
- }
18
-
19
- @Table({
20
- tableName: "auth_item",
21
- timestamps: false
22
- })
23
- export class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
24
-
25
- @Column({
26
- field: "key_name",
27
- primaryKey: true,
28
- type: DataType.STRING(100)
29
- })
30
- declare keyName: string;
31
-
32
- @Column({
33
- type: DataType.SMALLINT
34
- })
35
- declare type: number;
36
-
37
- @Column({
38
- type: DataType.STRING(255)
39
- })
40
- declare display: string;
41
-
42
- @Column({
43
- allowNull: true,
44
- type: DataType.STRING
45
- })
46
- declare description?: string;
47
-
48
- @Column({
49
- allowNull: true,
50
- type: DataType.INTEGER,
51
- defaultValue: "1"
52
- })
53
- declare status?: number;
54
-
55
- @Column({
56
- field: "created_by",
57
- allowNull: true,
58
- type: DataType.STRING(60)
59
- })
60
- declare createdBy?: string;
61
-
62
- @Column({
63
- field: "created_date",
64
- allowNull: true,
65
- type: DataType.DATE
66
- })
67
- declare createdDate?: Date;
68
-
69
- @Column({
70
- field: "updated_by",
71
- allowNull: true,
72
- type: DataType.STRING(60)
73
- })
74
- declare updatedBy?: string;
75
-
76
- @Column({
77
- field: "updated_date",
78
- allowNull: true,
79
- type: DataType.DATE
80
- })
81
- declare updatedDate?: Date;
82
-
83
- @HasOne(() => menu, {
84
- sourceKey: "keyName"
85
- })
86
- declare menu?: menu;
87
-
88
- @HasMany(() => authItemChild, {
89
- sourceKey: "keyName"
90
- })
91
- declare authItemChildren?: authItemChild[];
92
-
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasOne, HasMany
3
+ } from "sequelize-typescript";
4
+ import { menu } from "./menu";
5
+ import { authItemChild } from "./authItemChild";
6
+
7
+ export interface authItemAttributes {
8
+ keyName: string;
9
+ type: number;
10
+ display: string;
11
+ description?: string;
12
+ status?: number;
13
+ createdBy?: string;
14
+ createdDate?: Date;
15
+ updatedBy?: string;
16
+ updatedDate?: Date;
17
+ }
18
+
19
+ @Table({
20
+ tableName: "auth_item",
21
+ timestamps: false
22
+ })
23
+ export class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
24
+
25
+ @Column({
26
+ field: "key_name",
27
+ primaryKey: true,
28
+ type: DataType.STRING(100)
29
+ })
30
+ declare keyName: string;
31
+
32
+ @Column({
33
+ type: DataType.SMALLINT
34
+ })
35
+ declare type: number;
36
+
37
+ @Column({
38
+ type: DataType.STRING(255)
39
+ })
40
+ declare display: string;
41
+
42
+ @Column({
43
+ allowNull: true,
44
+ type: DataType.STRING
45
+ })
46
+ declare description?: string;
47
+
48
+ @Column({
49
+ allowNull: true,
50
+ type: DataType.INTEGER,
51
+ defaultValue: "1"
52
+ })
53
+ declare status?: number;
54
+
55
+ @Column({
56
+ field: "created_by",
57
+ allowNull: true,
58
+ type: DataType.STRING(60)
59
+ })
60
+ declare createdBy?: string;
61
+
62
+ @Column({
63
+ field: "created_date",
64
+ allowNull: true,
65
+ type: DataType.DATE
66
+ })
67
+ declare createdDate?: Date;
68
+
69
+ @Column({
70
+ field: "updated_by",
71
+ allowNull: true,
72
+ type: DataType.STRING(60)
73
+ })
74
+ declare updatedBy?: string;
75
+
76
+ @Column({
77
+ field: "updated_date",
78
+ allowNull: true,
79
+ type: DataType.DATE
80
+ })
81
+ declare updatedDate?: Date;
82
+
83
+ @HasOne(() => menu, {
84
+ sourceKey: "keyName"
85
+ })
86
+ declare menu?: menu;
87
+
88
+ @HasMany(() => authItemChild, {
89
+ sourceKey: "keyName"
90
+ })
91
+ declare authItemChildren?: authItemChild[];
92
+
93
93
  }
@@ -1,34 +1,34 @@
1
- import {
2
- Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
3
- } from "sequelize-typescript";
4
- import { authItem } from "./authItem";
5
-
6
- export interface authItemChildAttributes {
7
- parent: string;
8
- child: string;
9
- }
10
-
11
- @Table({
12
- tableName: "auth_item_child",
13
- timestamps: false
14
- })
15
- export class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
16
-
17
- @ForeignKey(() => authItem)
18
- @Column({
19
- primaryKey: true,
20
- type: DataType.STRING(64)
21
- })
22
- declare parent: string;
23
-
24
- @ForeignKey(() => authItem)
25
- @Column({
26
- primaryKey: true,
27
- type: DataType.STRING(64)
28
- })
29
- declare child: string;
30
-
31
- @BelongsTo(() => authItem)
32
- declare authItem?: authItem;
33
-
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
3
+ } from "sequelize-typescript";
4
+ import { authItem } from "./authItem";
5
+
6
+ export interface authItemChildAttributes {
7
+ parent: string;
8
+ child: string;
9
+ }
10
+
11
+ @Table({
12
+ tableName: "auth_item_child",
13
+ timestamps: false
14
+ })
15
+ export class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
16
+
17
+ @ForeignKey(() => authItem)
18
+ @Column({
19
+ primaryKey: true,
20
+ type: DataType.STRING(64)
21
+ })
22
+ declare parent: string;
23
+
24
+ @ForeignKey(() => authItem)
25
+ @Column({
26
+ primaryKey: true,
27
+ type: DataType.STRING(64)
28
+ })
29
+ declare child: string;
30
+
31
+ @BelongsTo(() => authItem)
32
+ declare authItem?: authItem;
33
+
34
34
  }
@@ -16,6 +16,8 @@ export interface msWebsiteAttributes {
16
16
  address?: string;
17
17
  phone?: string;
18
18
  fax?: string;
19
+ office?: string;
20
+ opened?: string;
19
21
  createdBy?: string;
20
22
  createdDate?: Date;
21
23
  updatedBy?: string;
@@ -109,6 +111,18 @@ export class msWebsite extends Model<msWebsiteAttributes, msWebsiteAttributes> i
109
111
  })
110
112
  declare fax?: string;
111
113
 
114
+ @Column({
115
+ allowNull: true,
116
+ type: DataType.STRING(255)
117
+ })
118
+ declare office?: string;
119
+
120
+ @Column({
121
+ allowNull: true,
122
+ type: DataType.DATEONLY
123
+ })
124
+ declare opened?: string;
125
+
112
126
  @Column({
113
127
  field: "created_by",
114
128
  allowNull: true,
@@ -6540,6 +6540,18 @@ __decorateClass([
6540
6540
  type: import_sequelize_typescript56.DataType.STRING(100)
6541
6541
  })
6542
6542
  ], msWebsite.prototype, "fax", 2);
6543
+ __decorateClass([
6544
+ (0, import_sequelize_typescript56.Column)({
6545
+ allowNull: true,
6546
+ type: import_sequelize_typescript56.DataType.STRING(255)
6547
+ })
6548
+ ], msWebsite.prototype, "office", 2);
6549
+ __decorateClass([
6550
+ (0, import_sequelize_typescript56.Column)({
6551
+ allowNull: true,
6552
+ type: import_sequelize_typescript56.DataType.DATEONLY
6553
+ })
6554
+ ], msWebsite.prototype, "opened", 2);
6543
6555
  __decorateClass([
6544
6556
  (0, import_sequelize_typescript56.Column)({
6545
6557
  field: "created_by",
@@ -14,6 +14,8 @@ interface msWebsiteAttributes {
14
14
  address?: string;
15
15
  phone?: string;
16
16
  fax?: string;
17
+ office?: string;
18
+ opened?: string;
17
19
  createdBy?: string;
18
20
  createdDate?: Date;
19
21
  updatedBy?: string;
@@ -33,6 +35,8 @@ declare class msWebsite extends Model<msWebsiteAttributes, msWebsiteAttributes>
33
35
  address?: string;
34
36
  phone?: string;
35
37
  fax?: string;
38
+ office?: string;
39
+ opened?: string;
36
40
  createdBy?: string;
37
41
  createdDate?: Date;
38
42
  updatedBy?: string;
@@ -115,6 +115,18 @@ __decorateClass([
115
115
  type: import_sequelize_typescript.DataType.STRING(100)
116
116
  })
117
117
  ], msWebsite.prototype, "fax", 2);
118
+ __decorateClass([
119
+ (0, import_sequelize_typescript.Column)({
120
+ allowNull: true,
121
+ type: import_sequelize_typescript.DataType.STRING(255)
122
+ })
123
+ ], msWebsite.prototype, "office", 2);
124
+ __decorateClass([
125
+ (0, import_sequelize_typescript.Column)({
126
+ allowNull: true,
127
+ type: import_sequelize_typescript.DataType.DATEONLY
128
+ })
129
+ ], msWebsite.prototype, "opened", 2);
118
130
  __decorateClass([
119
131
  (0, import_sequelize_typescript.Column)({
120
132
  field: "created_by",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",