@admc-go-th/admc-library 1.0.113 → 1.0.114

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.
@@ -46,6 +46,8 @@ export * from "./member";
46
46
  export * from "./menu";
47
47
  export * from "./msExecutive";
48
48
  export * from "./msExecutiveBoard";
49
+ export * from "./msExecutiveGroup";
50
+ export * from "./msExecutivePosition";
49
51
  export * from "./msGuidelines";
50
52
  export * from "./msHoliday";
51
53
  export * from "./msModule";
@@ -4,13 +4,21 @@ import {
4
4
 
5
5
  export interface msExecutiveAttributes {
6
6
  id?: number;
7
+ groupId?: number;
8
+ positionId?: number;
9
+ positionOther?: string;
7
10
  titleId?: number;
8
11
  firstName?: string;
9
12
  lastName?: string;
10
- firstNameEn?: string;
11
- lastNameEn?: string;
12
13
  email?: string;
14
+ phone?: string;
15
+ fax?: string;
16
+ education?: string;
17
+ experience?: string;
18
+ image?: string;
19
+ sort?: number;
13
20
  status?: string;
21
+ info?: object;
14
22
  createdBy?: string;
15
23
  createdDate?: Date;
16
24
  updatedBy?: string;
@@ -30,6 +38,27 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
30
38
  })
31
39
  declare id?: number;
32
40
 
41
+ @Column({
42
+ field: "group_id",
43
+ allowNull: true,
44
+ type: DataType.INTEGER
45
+ })
46
+ declare groupId?: number;
47
+
48
+ @Column({
49
+ field: "position_id",
50
+ allowNull: true,
51
+ type: DataType.INTEGER
52
+ })
53
+ declare positionId?: number;
54
+
55
+ @Column({
56
+ field: "position_other",
57
+ allowNull: true,
58
+ type: DataType.STRING(255)
59
+ })
60
+ declare positionOther?: string;
61
+
33
62
  @Column({
34
63
  field: "title_id",
35
64
  allowNull: true,
@@ -52,24 +81,46 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
52
81
  declare lastName?: string;
53
82
 
54
83
  @Column({
55
- field: "first_name_en",
56
84
  allowNull: true,
57
85
  type: DataType.STRING(255)
58
86
  })
59
- declare firstNameEn?: string;
87
+ declare email?: string;
60
88
 
61
89
  @Column({
62
- field: "last_name_en",
63
90
  allowNull: true,
64
91
  type: DataType.STRING(255)
65
92
  })
66
- declare lastNameEn?: string;
93
+ declare phone?: string;
67
94
 
68
95
  @Column({
69
96
  allowNull: true,
70
97
  type: DataType.STRING(255)
71
98
  })
72
- declare email?: string;
99
+ declare fax?: string;
100
+
101
+ @Column({
102
+ allowNull: true,
103
+ type: DataType.STRING(255)
104
+ })
105
+ declare education?: string;
106
+
107
+ @Column({
108
+ allowNull: true,
109
+ type: DataType.STRING(255)
110
+ })
111
+ declare experience?: string;
112
+
113
+ @Column({
114
+ allowNull: true,
115
+ type: DataType.STRING(255)
116
+ })
117
+ declare image?: string;
118
+
119
+ @Column({
120
+ allowNull: true,
121
+ type: DataType.INTEGER
122
+ })
123
+ declare sort?: number;
73
124
 
74
125
  @Column({
75
126
  allowNull: true,
@@ -77,6 +128,12 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
77
128
  })
78
129
  declare status?: string;
79
130
 
131
+ @Column({
132
+ allowNull: true,
133
+ type: DataType.JSON
134
+ })
135
+ declare info?: object;
136
+
80
137
  @Column({
81
138
  field: "created_by",
82
139
  allowNull: true,
@@ -0,0 +1,112 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msExecutiveGroupAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ name?: string;
9
+ description?: string;
10
+ startDate?: string;
11
+ endDate?: string;
12
+ sort?: number;
13
+ status?: number;
14
+ info?: object;
15
+ createdBy?: string;
16
+ createdDate?: Date;
17
+ updatedBy?: string;
18
+ updatedDate?: Date;
19
+ }
20
+
21
+ @Table({
22
+ tableName: "ms_executive_group",
23
+ timestamps: false
24
+ })
25
+ export class msExecutiveGroup extends Model<msExecutiveGroupAttributes, msExecutiveGroupAttributes> implements msExecutiveGroupAttributes {
26
+
27
+ @Column({
28
+ primaryKey: true,
29
+ autoIncrement: true,
30
+ type: DataType.INTEGER
31
+ })
32
+ declare id?: number;
33
+
34
+ @Column({
35
+ allowNull: true,
36
+ type: DataType.STRING(60)
37
+ })
38
+ declare uuid?: string;
39
+
40
+ @Column({
41
+ allowNull: true,
42
+ type: DataType.STRING(255)
43
+ })
44
+ declare name?: string;
45
+
46
+ @Column({
47
+ allowNull: true,
48
+ type: DataType.STRING(255)
49
+ })
50
+ declare description?: string;
51
+
52
+ @Column({
53
+ field: "start_date",
54
+ allowNull: true,
55
+ type: DataType.DATEONLY
56
+ })
57
+ declare startDate?: string;
58
+
59
+ @Column({
60
+ field: "end_date",
61
+ allowNull: true,
62
+ type: DataType.DATEONLY
63
+ })
64
+ declare endDate?: string;
65
+
66
+ @Column({
67
+ allowNull: true,
68
+ type: DataType.INTEGER
69
+ })
70
+ declare sort?: number;
71
+
72
+ @Column({
73
+ allowNull: true,
74
+ type: DataType.INTEGER
75
+ })
76
+ declare status?: number;
77
+
78
+ @Column({
79
+ allowNull: true,
80
+ type: DataType.JSON
81
+ })
82
+ declare info?: object;
83
+
84
+ @Column({
85
+ field: "created_by",
86
+ allowNull: true,
87
+ type: DataType.STRING(60)
88
+ })
89
+ declare createdBy?: string;
90
+
91
+ @Column({
92
+ field: "created_date",
93
+ allowNull: true,
94
+ type: DataType.DATE
95
+ })
96
+ declare createdDate?: Date;
97
+
98
+ @Column({
99
+ field: "updated_by",
100
+ allowNull: true,
101
+ type: DataType.STRING(60)
102
+ })
103
+ declare updatedBy?: string;
104
+
105
+ @Column({
106
+ field: "updated_date",
107
+ allowNull: true,
108
+ type: DataType.DATE
109
+ })
110
+ declare updatedDate?: Date;
111
+
112
+ }
@@ -0,0 +1,89 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msExecutivePositionAttributes {
6
+ id?: number;
7
+ name?: string;
8
+ description?: string;
9
+ sort?: number;
10
+ status?: number;
11
+ info?: object;
12
+ createdBy?: string;
13
+ createdDate?: Date;
14
+ updatedBy?: string;
15
+ updatedDate?: Date;
16
+ }
17
+
18
+ @Table({
19
+ tableName: "ms_executive_position",
20
+ timestamps: false
21
+ })
22
+ export class msExecutivePosition extends Model<msExecutivePositionAttributes, msExecutivePositionAttributes> implements msExecutivePositionAttributes {
23
+
24
+ @Column({
25
+ primaryKey: true,
26
+ autoIncrement: true,
27
+ type: DataType.INTEGER
28
+ })
29
+ declare id?: number;
30
+
31
+ @Column({
32
+ allowNull: true,
33
+ type: DataType.STRING(255)
34
+ })
35
+ declare name?: string;
36
+
37
+ @Column({
38
+ allowNull: true,
39
+ type: DataType.STRING(255)
40
+ })
41
+ declare description?: string;
42
+
43
+ @Column({
44
+ allowNull: true,
45
+ type: DataType.INTEGER
46
+ })
47
+ declare sort?: number;
48
+
49
+ @Column({
50
+ allowNull: true,
51
+ type: DataType.INTEGER
52
+ })
53
+ declare status?: number;
54
+
55
+ @Column({
56
+ allowNull: true,
57
+ type: DataType.JSON
58
+ })
59
+ declare info?: object;
60
+
61
+ @Column({
62
+ field: "created_by",
63
+ allowNull: true,
64
+ type: DataType.STRING(60)
65
+ })
66
+ declare createdBy?: string;
67
+
68
+ @Column({
69
+ field: "created_date",
70
+ allowNull: true,
71
+ type: DataType.DATE
72
+ })
73
+ declare createdDate?: Date;
74
+
75
+ @Column({
76
+ field: "updated_by",
77
+ allowNull: true,
78
+ type: DataType.STRING(60)
79
+ })
80
+ declare updatedBy?: string;
81
+
82
+ @Column({
83
+ field: "updated_date",
84
+ allowNull: true,
85
+ type: DataType.DATE
86
+ })
87
+ declare updatedDate?: Date;
88
+
89
+ }
@@ -29,6 +29,8 @@ export { mdWords, mdWordsAttributes } from './mdWords.js';
29
29
  export { member, memberAttributes } from './member.js';
30
30
  export { msExecutive, msExecutiveAttributes } from './msExecutive.js';
31
31
  export { msExecutiveBoard, msExecutiveBoardAttributes } from './msExecutiveBoard.js';
32
+ export { msExecutiveGroup, msExecutiveGroupAttributes } from './msExecutiveGroup.js';
33
+ export { msExecutivePosition, msExecutivePositionAttributes } from './msExecutivePosition.js';
32
34
  export { msGuidelines, msGuidelinesAttributes } from './msGuidelines.js';
33
35
  export { msHoliday, msHolidayAttributes } from './msHoliday.js';
34
36
  export { msProvince, msProvinceAttributes } from './msProvince.js';