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