@admc-go-th/admc-library 1.0.78 → 1.0.79
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/recruitment.ts +114 -0
- package/databases/schema/recruitmentGroup.ts +110 -0
- package/databases/tables/index.d.ts +1 -0
- package/databases/tables/index.js +264 -66
- package/databases/tables/recruitment.d.ts +2 -0
- package/databases/tables/recruitment.js +229 -0
- package/databases/tables/recruitmentGroup.d.ts +2 -0
- package/databases/tables/recruitmentGroup.js +229 -0
- package/package.json +1 -1
- package/recruitment-B92Vz87_.d.ts +63 -0
|
@@ -40,6 +40,8 @@ export * from "./menu";
|
|
|
40
40
|
export * from "./msModule";
|
|
41
41
|
export * from "./oauthAccessToken";
|
|
42
42
|
export * from "./oauthRefreshToken";
|
|
43
|
+
export * from "./recruitment";
|
|
44
|
+
export * from "./recruitmentGroup";
|
|
43
45
|
export * from "./settings";
|
|
44
46
|
export * from "./userCenterV";
|
|
45
47
|
export * from "./userRoleV";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { recruitmentGroup } from "./recruitmentGroup";
|
|
5
|
+
|
|
6
|
+
export interface recruitmentAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
groupId?: number;
|
|
9
|
+
positionName?: string;
|
|
10
|
+
accountListed?: number;
|
|
11
|
+
accountAge?: number;
|
|
12
|
+
accountExpires?: string;
|
|
13
|
+
calledPosition?: number;
|
|
14
|
+
status?: string;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
createdDate?: Date;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
updatedDate?: Date;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Table({
|
|
22
|
+
tableName: "recruitment",
|
|
23
|
+
timestamps: false
|
|
24
|
+
})
|
|
25
|
+
export class recruitment extends Model<recruitmentAttributes, recruitmentAttributes> implements recruitmentAttributes {
|
|
26
|
+
|
|
27
|
+
@Column({
|
|
28
|
+
primaryKey: true,
|
|
29
|
+
autoIncrement: true,
|
|
30
|
+
type: DataType.INTEGER
|
|
31
|
+
})
|
|
32
|
+
declare id?: number;
|
|
33
|
+
|
|
34
|
+
@ForeignKey(() => recruitmentGroup)
|
|
35
|
+
@Column({
|
|
36
|
+
field: "group_id",
|
|
37
|
+
allowNull: true,
|
|
38
|
+
type: DataType.INTEGER
|
|
39
|
+
})
|
|
40
|
+
declare groupId?: number;
|
|
41
|
+
|
|
42
|
+
@Column({
|
|
43
|
+
field: "position_name",
|
|
44
|
+
allowNull: true,
|
|
45
|
+
type: DataType.STRING(255)
|
|
46
|
+
})
|
|
47
|
+
declare positionName?: string;
|
|
48
|
+
|
|
49
|
+
@Column({
|
|
50
|
+
field: "account_listed",
|
|
51
|
+
allowNull: true,
|
|
52
|
+
type: DataType.INTEGER
|
|
53
|
+
})
|
|
54
|
+
declare accountListed?: number;
|
|
55
|
+
|
|
56
|
+
@Column({
|
|
57
|
+
field: "account_age",
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: DataType.INTEGER
|
|
60
|
+
})
|
|
61
|
+
declare accountAge?: number;
|
|
62
|
+
|
|
63
|
+
@Column({
|
|
64
|
+
field: "account_expires",
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: DataType.DATEONLY
|
|
67
|
+
})
|
|
68
|
+
declare accountExpires?: string;
|
|
69
|
+
|
|
70
|
+
@Column({
|
|
71
|
+
field: "called_position",
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: DataType.INTEGER
|
|
74
|
+
})
|
|
75
|
+
declare calledPosition?: number;
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: DataType.STRING(255)
|
|
80
|
+
})
|
|
81
|
+
declare status?: string;
|
|
82
|
+
|
|
83
|
+
@Column({
|
|
84
|
+
field: "created_by",
|
|
85
|
+
allowNull: true,
|
|
86
|
+
type: DataType.STRING(60)
|
|
87
|
+
})
|
|
88
|
+
declare createdBy?: string;
|
|
89
|
+
|
|
90
|
+
@Column({
|
|
91
|
+
field: "created_date",
|
|
92
|
+
allowNull: true,
|
|
93
|
+
type: DataType.DATE
|
|
94
|
+
})
|
|
95
|
+
declare createdDate?: Date;
|
|
96
|
+
|
|
97
|
+
@Column({
|
|
98
|
+
field: "updated_by",
|
|
99
|
+
allowNull: true,
|
|
100
|
+
type: DataType.STRING(60)
|
|
101
|
+
})
|
|
102
|
+
declare updatedBy?: string;
|
|
103
|
+
|
|
104
|
+
@Column({
|
|
105
|
+
field: "updated_date",
|
|
106
|
+
allowNull: true,
|
|
107
|
+
type: DataType.DATE
|
|
108
|
+
})
|
|
109
|
+
declare updatedDate?: Date;
|
|
110
|
+
|
|
111
|
+
@BelongsTo(() => recruitmentGroup)
|
|
112
|
+
declare recruitmentGroup?: recruitmentGroup;
|
|
113
|
+
|
|
114
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { recruitment } from "./recruitment";
|
|
5
|
+
|
|
6
|
+
export interface recruitmentGroupAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
uuid?: string;
|
|
9
|
+
keyName?: string;
|
|
10
|
+
userId?: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
sort?: number;
|
|
14
|
+
status?: number;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
createdDate?: Date;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
updatedDate?: Date;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Table({
|
|
22
|
+
tableName: "recruitment_group",
|
|
23
|
+
timestamps: false
|
|
24
|
+
})
|
|
25
|
+
export class recruitmentGroup extends Model<recruitmentGroupAttributes, recruitmentGroupAttributes> implements recruitmentGroupAttributes {
|
|
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
|
+
field: "key_name",
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: DataType.STRING(100)
|
|
44
|
+
})
|
|
45
|
+
declare keyName?: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
field: "user_id",
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: DataType.INTEGER
|
|
51
|
+
})
|
|
52
|
+
declare userId?: number;
|
|
53
|
+
|
|
54
|
+
@Column({
|
|
55
|
+
type: DataType.STRING(255)
|
|
56
|
+
})
|
|
57
|
+
declare name: string;
|
|
58
|
+
|
|
59
|
+
@Column({
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: DataType.STRING(255)
|
|
62
|
+
})
|
|
63
|
+
declare description?: string;
|
|
64
|
+
|
|
65
|
+
@Column({
|
|
66
|
+
allowNull: true,
|
|
67
|
+
type: DataType.INTEGER
|
|
68
|
+
})
|
|
69
|
+
declare sort?: number;
|
|
70
|
+
|
|
71
|
+
@Column({
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: DataType.INTEGER
|
|
74
|
+
})
|
|
75
|
+
declare status?: number;
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
field: "created_by",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: DataType.STRING(60)
|
|
81
|
+
})
|
|
82
|
+
declare createdBy?: string;
|
|
83
|
+
|
|
84
|
+
@Column({
|
|
85
|
+
field: "created_date",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: DataType.DATE
|
|
88
|
+
})
|
|
89
|
+
declare createdDate?: Date;
|
|
90
|
+
|
|
91
|
+
@Column({
|
|
92
|
+
field: "updated_by",
|
|
93
|
+
allowNull: true,
|
|
94
|
+
type: DataType.STRING(60)
|
|
95
|
+
})
|
|
96
|
+
declare updatedBy?: string;
|
|
97
|
+
|
|
98
|
+
@Column({
|
|
99
|
+
field: "updated_date",
|
|
100
|
+
allowNull: true,
|
|
101
|
+
type: DataType.DATE
|
|
102
|
+
})
|
|
103
|
+
declare updatedDate?: Date;
|
|
104
|
+
|
|
105
|
+
@HasMany(() => recruitment, {
|
|
106
|
+
sourceKey: "id"
|
|
107
|
+
})
|
|
108
|
+
declare recruitments?: recruitment[];
|
|
109
|
+
|
|
110
|
+
}
|
|
@@ -23,6 +23,7 @@ export { mdWords, mdWordsAttributes } from './mdWords.js';
|
|
|
23
23
|
export { member, memberAttributes } from './member.js';
|
|
24
24
|
export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
|
|
25
25
|
export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshToken.js';
|
|
26
|
+
export { a as recruitment, r as recruitmentAttributes, c as recruitmentGroup, b as recruitmentGroupAttributes } from '../../recruitment-B92Vz87_.js';
|
|
26
27
|
export { settings, settingsAttributes } from './settings.js';
|
|
27
28
|
export { userCenterV, userCenterVAttributes } from './userCenterV.js';
|
|
28
29
|
export { userRoleV, userRoleVAttributes } from './userRoleV.js';
|
|
@@ -70,6 +70,8 @@ __export(tables_exports, {
|
|
|
70
70
|
msModule: () => msModule,
|
|
71
71
|
oauthAccessToken: () => oauthAccessToken,
|
|
72
72
|
oauthRefreshToken: () => oauthRefreshToken,
|
|
73
|
+
recruitment: () => recruitment,
|
|
74
|
+
recruitmentGroup: () => recruitmentGroup,
|
|
73
75
|
settings: () => settings,
|
|
74
76
|
userCenterV: () => userCenterV,
|
|
75
77
|
userRoleV: () => userRoleV,
|
|
@@ -4923,9 +4925,12 @@ oauthRefreshToken = __decorateClass([
|
|
|
4923
4925
|
})
|
|
4924
4926
|
], oauthRefreshToken);
|
|
4925
4927
|
|
|
4926
|
-
// src/databases/tables/
|
|
4928
|
+
// src/databases/tables/recruitment.ts
|
|
4929
|
+
var import_sequelize_typescript46 = require("sequelize-typescript");
|
|
4930
|
+
|
|
4931
|
+
// src/databases/tables/recruitmentGroup.ts
|
|
4927
4932
|
var import_sequelize_typescript45 = require("sequelize-typescript");
|
|
4928
|
-
var
|
|
4933
|
+
var recruitmentGroup = class extends import_sequelize_typescript45.Model {
|
|
4929
4934
|
};
|
|
4930
4935
|
__decorateClass([
|
|
4931
4936
|
(0, import_sequelize_typescript45.Column)({
|
|
@@ -4933,190 +4938,381 @@ __decorateClass([
|
|
|
4933
4938
|
autoIncrement: true,
|
|
4934
4939
|
type: import_sequelize_typescript45.DataType.INTEGER
|
|
4935
4940
|
})
|
|
4936
|
-
],
|
|
4941
|
+
], recruitmentGroup.prototype, "id", 2);
|
|
4942
|
+
__decorateClass([
|
|
4943
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4944
|
+
allowNull: true,
|
|
4945
|
+
type: import_sequelize_typescript45.DataType.STRING(60)
|
|
4946
|
+
})
|
|
4947
|
+
], recruitmentGroup.prototype, "uuid", 2);
|
|
4948
|
+
__decorateClass([
|
|
4949
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4950
|
+
field: "key_name",
|
|
4951
|
+
allowNull: true,
|
|
4952
|
+
type: import_sequelize_typescript45.DataType.STRING(100)
|
|
4953
|
+
})
|
|
4954
|
+
], recruitmentGroup.prototype, "keyName", 2);
|
|
4937
4955
|
__decorateClass([
|
|
4938
4956
|
(0, import_sequelize_typescript45.Column)({
|
|
4957
|
+
field: "user_id",
|
|
4939
4958
|
allowNull: true,
|
|
4959
|
+
type: import_sequelize_typescript45.DataType.INTEGER
|
|
4960
|
+
})
|
|
4961
|
+
], recruitmentGroup.prototype, "userId", 2);
|
|
4962
|
+
__decorateClass([
|
|
4963
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4940
4964
|
type: import_sequelize_typescript45.DataType.STRING(255)
|
|
4941
4965
|
})
|
|
4942
|
-
],
|
|
4966
|
+
], recruitmentGroup.prototype, "name", 2);
|
|
4943
4967
|
__decorateClass([
|
|
4944
4968
|
(0, import_sequelize_typescript45.Column)({
|
|
4945
4969
|
allowNull: true,
|
|
4946
|
-
type: import_sequelize_typescript45.DataType.STRING
|
|
4970
|
+
type: import_sequelize_typescript45.DataType.STRING(255)
|
|
4947
4971
|
})
|
|
4948
|
-
],
|
|
4972
|
+
], recruitmentGroup.prototype, "description", 2);
|
|
4949
4973
|
__decorateClass([
|
|
4950
4974
|
(0, import_sequelize_typescript45.Column)({
|
|
4951
4975
|
allowNull: true,
|
|
4952
|
-
type: import_sequelize_typescript45.DataType.
|
|
4976
|
+
type: import_sequelize_typescript45.DataType.INTEGER
|
|
4953
4977
|
})
|
|
4954
|
-
],
|
|
4978
|
+
], recruitmentGroup.prototype, "sort", 2);
|
|
4979
|
+
__decorateClass([
|
|
4980
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4981
|
+
allowNull: true,
|
|
4982
|
+
type: import_sequelize_typescript45.DataType.INTEGER
|
|
4983
|
+
})
|
|
4984
|
+
], recruitmentGroup.prototype, "status", 2);
|
|
4985
|
+
__decorateClass([
|
|
4986
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4987
|
+
field: "created_by",
|
|
4988
|
+
allowNull: true,
|
|
4989
|
+
type: import_sequelize_typescript45.DataType.STRING(60)
|
|
4990
|
+
})
|
|
4991
|
+
], recruitmentGroup.prototype, "createdBy", 2);
|
|
4992
|
+
__decorateClass([
|
|
4993
|
+
(0, import_sequelize_typescript45.Column)({
|
|
4994
|
+
field: "created_date",
|
|
4995
|
+
allowNull: true,
|
|
4996
|
+
type: import_sequelize_typescript45.DataType.DATE
|
|
4997
|
+
})
|
|
4998
|
+
], recruitmentGroup.prototype, "createdDate", 2);
|
|
4955
4999
|
__decorateClass([
|
|
4956
5000
|
(0, import_sequelize_typescript45.Column)({
|
|
4957
5001
|
field: "updated_by",
|
|
4958
5002
|
allowNull: true,
|
|
4959
5003
|
type: import_sequelize_typescript45.DataType.STRING(60)
|
|
4960
5004
|
})
|
|
4961
|
-
],
|
|
5005
|
+
], recruitmentGroup.prototype, "updatedBy", 2);
|
|
4962
5006
|
__decorateClass([
|
|
4963
5007
|
(0, import_sequelize_typescript45.Column)({
|
|
4964
5008
|
field: "updated_date",
|
|
4965
5009
|
allowNull: true,
|
|
4966
5010
|
type: import_sequelize_typescript45.DataType.DATE
|
|
4967
5011
|
})
|
|
5012
|
+
], recruitmentGroup.prototype, "updatedDate", 2);
|
|
5013
|
+
__decorateClass([
|
|
5014
|
+
(0, import_sequelize_typescript45.HasMany)(() => recruitment, {
|
|
5015
|
+
sourceKey: "id"
|
|
5016
|
+
})
|
|
5017
|
+
], recruitmentGroup.prototype, "recruitments", 2);
|
|
5018
|
+
recruitmentGroup = __decorateClass([
|
|
5019
|
+
(0, import_sequelize_typescript45.Table)({
|
|
5020
|
+
tableName: "recruitment_group",
|
|
5021
|
+
timestamps: false
|
|
5022
|
+
})
|
|
5023
|
+
], recruitmentGroup);
|
|
5024
|
+
|
|
5025
|
+
// src/databases/tables/recruitment.ts
|
|
5026
|
+
var recruitment = class extends import_sequelize_typescript46.Model {
|
|
5027
|
+
};
|
|
5028
|
+
__decorateClass([
|
|
5029
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5030
|
+
primaryKey: true,
|
|
5031
|
+
autoIncrement: true,
|
|
5032
|
+
type: import_sequelize_typescript46.DataType.INTEGER
|
|
5033
|
+
})
|
|
5034
|
+
], recruitment.prototype, "id", 2);
|
|
5035
|
+
__decorateClass([
|
|
5036
|
+
(0, import_sequelize_typescript46.ForeignKey)(() => recruitmentGroup),
|
|
5037
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5038
|
+
field: "group_id",
|
|
5039
|
+
allowNull: true,
|
|
5040
|
+
type: import_sequelize_typescript46.DataType.INTEGER
|
|
5041
|
+
})
|
|
5042
|
+
], recruitment.prototype, "groupId", 2);
|
|
5043
|
+
__decorateClass([
|
|
5044
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5045
|
+
field: "position_name",
|
|
5046
|
+
allowNull: true,
|
|
5047
|
+
type: import_sequelize_typescript46.DataType.STRING(255)
|
|
5048
|
+
})
|
|
5049
|
+
], recruitment.prototype, "positionName", 2);
|
|
5050
|
+
__decorateClass([
|
|
5051
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5052
|
+
field: "account_listed",
|
|
5053
|
+
allowNull: true,
|
|
5054
|
+
type: import_sequelize_typescript46.DataType.INTEGER
|
|
5055
|
+
})
|
|
5056
|
+
], recruitment.prototype, "accountListed", 2);
|
|
5057
|
+
__decorateClass([
|
|
5058
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5059
|
+
field: "account_age",
|
|
5060
|
+
allowNull: true,
|
|
5061
|
+
type: import_sequelize_typescript46.DataType.INTEGER
|
|
5062
|
+
})
|
|
5063
|
+
], recruitment.prototype, "accountAge", 2);
|
|
5064
|
+
__decorateClass([
|
|
5065
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5066
|
+
field: "account_expires",
|
|
5067
|
+
allowNull: true,
|
|
5068
|
+
type: import_sequelize_typescript46.DataType.DATEONLY
|
|
5069
|
+
})
|
|
5070
|
+
], recruitment.prototype, "accountExpires", 2);
|
|
5071
|
+
__decorateClass([
|
|
5072
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5073
|
+
field: "called_position",
|
|
5074
|
+
allowNull: true,
|
|
5075
|
+
type: import_sequelize_typescript46.DataType.INTEGER
|
|
5076
|
+
})
|
|
5077
|
+
], recruitment.prototype, "calledPosition", 2);
|
|
5078
|
+
__decorateClass([
|
|
5079
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5080
|
+
allowNull: true,
|
|
5081
|
+
type: import_sequelize_typescript46.DataType.STRING(255)
|
|
5082
|
+
})
|
|
5083
|
+
], recruitment.prototype, "status", 2);
|
|
5084
|
+
__decorateClass([
|
|
5085
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5086
|
+
field: "created_by",
|
|
5087
|
+
allowNull: true,
|
|
5088
|
+
type: import_sequelize_typescript46.DataType.STRING(60)
|
|
5089
|
+
})
|
|
5090
|
+
], recruitment.prototype, "createdBy", 2);
|
|
5091
|
+
__decorateClass([
|
|
5092
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5093
|
+
field: "created_date",
|
|
5094
|
+
allowNull: true,
|
|
5095
|
+
type: import_sequelize_typescript46.DataType.DATE
|
|
5096
|
+
})
|
|
5097
|
+
], recruitment.prototype, "createdDate", 2);
|
|
5098
|
+
__decorateClass([
|
|
5099
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5100
|
+
field: "updated_by",
|
|
5101
|
+
allowNull: true,
|
|
5102
|
+
type: import_sequelize_typescript46.DataType.STRING(60)
|
|
5103
|
+
})
|
|
5104
|
+
], recruitment.prototype, "updatedBy", 2);
|
|
5105
|
+
__decorateClass([
|
|
5106
|
+
(0, import_sequelize_typescript46.Column)({
|
|
5107
|
+
field: "updated_date",
|
|
5108
|
+
allowNull: true,
|
|
5109
|
+
type: import_sequelize_typescript46.DataType.DATE
|
|
5110
|
+
})
|
|
5111
|
+
], recruitment.prototype, "updatedDate", 2);
|
|
5112
|
+
__decorateClass([
|
|
5113
|
+
(0, import_sequelize_typescript46.BelongsTo)(() => recruitmentGroup)
|
|
5114
|
+
], recruitment.prototype, "recruitmentGroup", 2);
|
|
5115
|
+
recruitment = __decorateClass([
|
|
5116
|
+
(0, import_sequelize_typescript46.Table)({
|
|
5117
|
+
tableName: "recruitment",
|
|
5118
|
+
timestamps: false
|
|
5119
|
+
})
|
|
5120
|
+
], recruitment);
|
|
5121
|
+
|
|
5122
|
+
// src/databases/tables/settings.ts
|
|
5123
|
+
var import_sequelize_typescript47 = require("sequelize-typescript");
|
|
5124
|
+
var settings = class extends import_sequelize_typescript47.Model {
|
|
5125
|
+
};
|
|
5126
|
+
__decorateClass([
|
|
5127
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5128
|
+
primaryKey: true,
|
|
5129
|
+
autoIncrement: true,
|
|
5130
|
+
type: import_sequelize_typescript47.DataType.INTEGER
|
|
5131
|
+
})
|
|
5132
|
+
], settings.prototype, "id", 2);
|
|
5133
|
+
__decorateClass([
|
|
5134
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5135
|
+
allowNull: true,
|
|
5136
|
+
type: import_sequelize_typescript47.DataType.STRING(255)
|
|
5137
|
+
})
|
|
5138
|
+
], settings.prototype, "key", 2);
|
|
5139
|
+
__decorateClass([
|
|
5140
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5141
|
+
allowNull: true,
|
|
5142
|
+
type: import_sequelize_typescript47.DataType.STRING
|
|
5143
|
+
})
|
|
5144
|
+
], settings.prototype, "value", 2);
|
|
5145
|
+
__decorateClass([
|
|
5146
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5147
|
+
allowNull: true,
|
|
5148
|
+
type: import_sequelize_typescript47.DataType.JSON
|
|
5149
|
+
})
|
|
5150
|
+
], settings.prototype, "data", 2);
|
|
5151
|
+
__decorateClass([
|
|
5152
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5153
|
+
field: "updated_by",
|
|
5154
|
+
allowNull: true,
|
|
5155
|
+
type: import_sequelize_typescript47.DataType.STRING(60)
|
|
5156
|
+
})
|
|
5157
|
+
], settings.prototype, "updatedBy", 2);
|
|
5158
|
+
__decorateClass([
|
|
5159
|
+
(0, import_sequelize_typescript47.Column)({
|
|
5160
|
+
field: "updated_date",
|
|
5161
|
+
allowNull: true,
|
|
5162
|
+
type: import_sequelize_typescript47.DataType.DATE
|
|
5163
|
+
})
|
|
4968
5164
|
], settings.prototype, "updatedDate", 2);
|
|
4969
5165
|
settings = __decorateClass([
|
|
4970
|
-
(0,
|
|
5166
|
+
(0, import_sequelize_typescript47.Table)({
|
|
4971
5167
|
tableName: "settings",
|
|
4972
5168
|
timestamps: false
|
|
4973
5169
|
})
|
|
4974
5170
|
], settings);
|
|
4975
5171
|
|
|
4976
5172
|
// src/databases/tables/userCenterV.ts
|
|
4977
|
-
var
|
|
4978
|
-
var userCenterV = class extends
|
|
5173
|
+
var import_sequelize_typescript48 = require("sequelize-typescript");
|
|
5174
|
+
var userCenterV = class extends import_sequelize_typescript48.Model {
|
|
4979
5175
|
};
|
|
4980
5176
|
__decorateClass([
|
|
4981
|
-
(0,
|
|
4982
|
-
type:
|
|
5177
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5178
|
+
type: import_sequelize_typescript48.DataType.INTEGER,
|
|
4983
5179
|
defaultValue: "0"
|
|
4984
5180
|
})
|
|
4985
5181
|
], userCenterV.prototype, "id", 2);
|
|
4986
5182
|
__decorateClass([
|
|
4987
|
-
(0,
|
|
4988
|
-
type:
|
|
5183
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5184
|
+
type: import_sequelize_typescript48.DataType.STRING(60)
|
|
4989
5185
|
})
|
|
4990
5186
|
], userCenterV.prototype, "uuid", 2);
|
|
4991
5187
|
__decorateClass([
|
|
4992
|
-
(0,
|
|
4993
|
-
type:
|
|
5188
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5189
|
+
type: import_sequelize_typescript48.DataType.STRING(100)
|
|
4994
5190
|
})
|
|
4995
5191
|
], userCenterV.prototype, "username", 2);
|
|
4996
5192
|
__decorateClass([
|
|
4997
|
-
(0,
|
|
5193
|
+
(0, import_sequelize_typescript48.Column)({
|
|
4998
5194
|
field: "password_hash",
|
|
4999
5195
|
allowNull: true,
|
|
5000
|
-
type:
|
|
5196
|
+
type: import_sequelize_typescript48.DataType.STRING(255)
|
|
5001
5197
|
})
|
|
5002
5198
|
], userCenterV.prototype, "passwordHash", 2);
|
|
5003
5199
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
5200
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5005
5201
|
field: "password_reset_token",
|
|
5006
5202
|
allowNull: true,
|
|
5007
|
-
type:
|
|
5203
|
+
type: import_sequelize_typescript48.DataType.STRING(255)
|
|
5008
5204
|
})
|
|
5009
5205
|
], userCenterV.prototype, "passwordResetToken", 2);
|
|
5010
5206
|
__decorateClass([
|
|
5011
|
-
(0,
|
|
5207
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5012
5208
|
field: "verification_token",
|
|
5013
5209
|
allowNull: true,
|
|
5014
|
-
type:
|
|
5210
|
+
type: import_sequelize_typescript48.DataType.STRING(255)
|
|
5015
5211
|
})
|
|
5016
5212
|
], userCenterV.prototype, "verificationToken", 2);
|
|
5017
5213
|
__decorateClass([
|
|
5018
|
-
(0,
|
|
5214
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5019
5215
|
allowNull: true,
|
|
5020
|
-
type:
|
|
5216
|
+
type: import_sequelize_typescript48.DataType.STRING(255)
|
|
5021
5217
|
})
|
|
5022
5218
|
], userCenterV.prototype, "email", 2);
|
|
5023
5219
|
__decorateClass([
|
|
5024
|
-
(0,
|
|
5220
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5025
5221
|
field: "auth_key",
|
|
5026
5222
|
allowNull: true,
|
|
5027
|
-
type:
|
|
5223
|
+
type: import_sequelize_typescript48.DataType.STRING(32)
|
|
5028
5224
|
})
|
|
5029
5225
|
], userCenterV.prototype, "authKey", 2);
|
|
5030
5226
|
__decorateClass([
|
|
5031
|
-
(0,
|
|
5227
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5032
5228
|
field: "access_token",
|
|
5033
5229
|
allowNull: true,
|
|
5034
|
-
type:
|
|
5230
|
+
type: import_sequelize_typescript48.DataType.STRING
|
|
5035
5231
|
})
|
|
5036
5232
|
], userCenterV.prototype, "accessToken", 2);
|
|
5037
5233
|
__decorateClass([
|
|
5038
|
-
(0,
|
|
5234
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5039
5235
|
field: "user_level",
|
|
5040
5236
|
allowNull: true,
|
|
5041
|
-
type:
|
|
5237
|
+
type: import_sequelize_typescript48.DataType.INTEGER
|
|
5042
5238
|
})
|
|
5043
5239
|
], userCenterV.prototype, "userLevel", 2);
|
|
5044
5240
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5241
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5046
5242
|
field: "user_authen",
|
|
5047
5243
|
allowNull: true,
|
|
5048
|
-
type:
|
|
5244
|
+
type: import_sequelize_typescript48.DataType.STRING(64)
|
|
5049
5245
|
})
|
|
5050
5246
|
], userCenterV.prototype, "userAuthen", 2);
|
|
5051
5247
|
__decorateClass([
|
|
5052
|
-
(0,
|
|
5248
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5053
5249
|
field: "user_type",
|
|
5054
5250
|
allowNull: true,
|
|
5055
|
-
type:
|
|
5251
|
+
type: import_sequelize_typescript48.DataType.INTEGER
|
|
5056
5252
|
})
|
|
5057
5253
|
], userCenterV.prototype, "userType", 2);
|
|
5058
5254
|
__decorateClass([
|
|
5059
|
-
(0,
|
|
5255
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5060
5256
|
allowNull: true,
|
|
5061
|
-
type:
|
|
5257
|
+
type: import_sequelize_typescript48.DataType.STRING(10)
|
|
5062
5258
|
})
|
|
5063
5259
|
], userCenterV.prototype, "prefix", 2);
|
|
5064
5260
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5261
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5066
5262
|
field: "first_name",
|
|
5067
5263
|
allowNull: true,
|
|
5068
|
-
type:
|
|
5264
|
+
type: import_sequelize_typescript48.DataType.STRING(100)
|
|
5069
5265
|
})
|
|
5070
5266
|
], userCenterV.prototype, "firstName", 2);
|
|
5071
5267
|
__decorateClass([
|
|
5072
|
-
(0,
|
|
5268
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5073
5269
|
field: "last_name",
|
|
5074
5270
|
allowNull: true,
|
|
5075
|
-
type:
|
|
5271
|
+
type: import_sequelize_typescript48.DataType.STRING(100)
|
|
5076
5272
|
})
|
|
5077
5273
|
], userCenterV.prototype, "lastName", 2);
|
|
5078
5274
|
__decorateClass([
|
|
5079
|
-
(0,
|
|
5275
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5080
5276
|
allowNull: true,
|
|
5081
|
-
type:
|
|
5277
|
+
type: import_sequelize_typescript48.DataType.STRING(20)
|
|
5082
5278
|
})
|
|
5083
5279
|
], userCenterV.prototype, "phone", 2);
|
|
5084
5280
|
__decorateClass([
|
|
5085
|
-
(0,
|
|
5281
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5086
5282
|
allowNull: true,
|
|
5087
|
-
type:
|
|
5283
|
+
type: import_sequelize_typescript48.DataType.SMALLINT
|
|
5088
5284
|
})
|
|
5089
5285
|
], userCenterV.prototype, "status", 2);
|
|
5090
5286
|
__decorateClass([
|
|
5091
|
-
(0,
|
|
5287
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5092
5288
|
field: "created_by",
|
|
5093
5289
|
allowNull: true,
|
|
5094
|
-
type:
|
|
5290
|
+
type: import_sequelize_typescript48.DataType.STRING(60)
|
|
5095
5291
|
})
|
|
5096
5292
|
], userCenterV.prototype, "createdBy", 2);
|
|
5097
5293
|
__decorateClass([
|
|
5098
|
-
(0,
|
|
5294
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5099
5295
|
field: "created_date",
|
|
5100
5296
|
allowNull: true,
|
|
5101
|
-
type:
|
|
5297
|
+
type: import_sequelize_typescript48.DataType.DATE
|
|
5102
5298
|
})
|
|
5103
5299
|
], userCenterV.prototype, "createdDate", 2);
|
|
5104
5300
|
__decorateClass([
|
|
5105
|
-
(0,
|
|
5301
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5106
5302
|
field: "updated_by",
|
|
5107
5303
|
allowNull: true,
|
|
5108
|
-
type:
|
|
5304
|
+
type: import_sequelize_typescript48.DataType.STRING(60)
|
|
5109
5305
|
})
|
|
5110
5306
|
], userCenterV.prototype, "updatedBy", 2);
|
|
5111
5307
|
__decorateClass([
|
|
5112
|
-
(0,
|
|
5308
|
+
(0, import_sequelize_typescript48.Column)({
|
|
5113
5309
|
field: "updated_date",
|
|
5114
5310
|
allowNull: true,
|
|
5115
|
-
type:
|
|
5311
|
+
type: import_sequelize_typescript48.DataType.DATE
|
|
5116
5312
|
})
|
|
5117
5313
|
], userCenterV.prototype, "updatedDate", 2);
|
|
5118
5314
|
userCenterV = __decorateClass([
|
|
5119
|
-
(0,
|
|
5315
|
+
(0, import_sequelize_typescript48.Table)({
|
|
5120
5316
|
tableName: "user_center_v",
|
|
5121
5317
|
timestamps: false,
|
|
5122
5318
|
comment: "VIEW"
|
|
@@ -5124,38 +5320,38 @@ userCenterV = __decorateClass([
|
|
|
5124
5320
|
], userCenterV);
|
|
5125
5321
|
|
|
5126
5322
|
// src/databases/tables/userRoleV.ts
|
|
5127
|
-
var
|
|
5128
|
-
var userRoleV = class extends
|
|
5323
|
+
var import_sequelize_typescript49 = require("sequelize-typescript");
|
|
5324
|
+
var userRoleV = class extends import_sequelize_typescript49.Model {
|
|
5129
5325
|
};
|
|
5130
5326
|
__decorateClass([
|
|
5131
|
-
(0,
|
|
5132
|
-
type:
|
|
5327
|
+
(0, import_sequelize_typescript49.Column)({
|
|
5328
|
+
type: import_sequelize_typescript49.DataType.INTEGER,
|
|
5133
5329
|
defaultValue: "0"
|
|
5134
5330
|
})
|
|
5135
5331
|
], userRoleV.prototype, "id", 2);
|
|
5136
5332
|
__decorateClass([
|
|
5137
|
-
(0,
|
|
5333
|
+
(0, import_sequelize_typescript49.Column)({
|
|
5138
5334
|
field: "website_th",
|
|
5139
5335
|
allowNull: true,
|
|
5140
|
-
type:
|
|
5336
|
+
type: import_sequelize_typescript49.DataType.STRING(60)
|
|
5141
5337
|
})
|
|
5142
5338
|
], userRoleV.prototype, "websiteTh", 2);
|
|
5143
5339
|
__decorateClass([
|
|
5144
|
-
(0,
|
|
5340
|
+
(0, import_sequelize_typescript49.Column)({
|
|
5145
5341
|
field: "website_en",
|
|
5146
5342
|
allowNull: true,
|
|
5147
|
-
type:
|
|
5343
|
+
type: import_sequelize_typescript49.DataType.STRING(60)
|
|
5148
5344
|
})
|
|
5149
5345
|
], userRoleV.prototype, "websiteEn", 2);
|
|
5150
5346
|
__decorateClass([
|
|
5151
|
-
(0,
|
|
5347
|
+
(0, import_sequelize_typescript49.Column)({
|
|
5152
5348
|
field: "website_fr",
|
|
5153
5349
|
allowNull: true,
|
|
5154
|
-
type:
|
|
5350
|
+
type: import_sequelize_typescript49.DataType.STRING(60)
|
|
5155
5351
|
})
|
|
5156
5352
|
], userRoleV.prototype, "websiteFr", 2);
|
|
5157
5353
|
userRoleV = __decorateClass([
|
|
5158
|
-
(0,
|
|
5354
|
+
(0, import_sequelize_typescript49.Table)({
|
|
5159
5355
|
tableName: "user_role_v",
|
|
5160
5356
|
timestamps: false,
|
|
5161
5357
|
comment: "VIEW"
|
|
@@ -5205,6 +5401,8 @@ userRoleV = __decorateClass([
|
|
|
5205
5401
|
msModule,
|
|
5206
5402
|
oauthAccessToken,
|
|
5207
5403
|
oauthRefreshToken,
|
|
5404
|
+
recruitment,
|
|
5405
|
+
recruitmentGroup,
|
|
5208
5406
|
settings,
|
|
5209
5407
|
userCenterV,
|
|
5210
5408
|
userRoleV,
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/recruitment.ts
|
|
29
|
+
var recruitment_exports = {};
|
|
30
|
+
__export(recruitment_exports, {
|
|
31
|
+
recruitment: () => recruitment
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(recruitment_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/recruitmentGroup.ts
|
|
37
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
38
|
+
var recruitmentGroup = class extends import_sequelize_typescript.Model {
|
|
39
|
+
};
|
|
40
|
+
__decorateClass([
|
|
41
|
+
(0, import_sequelize_typescript.Column)({
|
|
42
|
+
primaryKey: true,
|
|
43
|
+
autoIncrement: true,
|
|
44
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
45
|
+
})
|
|
46
|
+
], recruitmentGroup.prototype, "id", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
(0, import_sequelize_typescript.Column)({
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
51
|
+
})
|
|
52
|
+
], recruitmentGroup.prototype, "uuid", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
(0, import_sequelize_typescript.Column)({
|
|
55
|
+
field: "key_name",
|
|
56
|
+
allowNull: true,
|
|
57
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
58
|
+
})
|
|
59
|
+
], recruitmentGroup.prototype, "keyName", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
(0, import_sequelize_typescript.Column)({
|
|
62
|
+
field: "user_id",
|
|
63
|
+
allowNull: true,
|
|
64
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
65
|
+
})
|
|
66
|
+
], recruitmentGroup.prototype, "userId", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
(0, import_sequelize_typescript.Column)({
|
|
69
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
70
|
+
})
|
|
71
|
+
], recruitmentGroup.prototype, "name", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
(0, import_sequelize_typescript.Column)({
|
|
74
|
+
allowNull: true,
|
|
75
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
76
|
+
})
|
|
77
|
+
], recruitmentGroup.prototype, "description", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
(0, import_sequelize_typescript.Column)({
|
|
80
|
+
allowNull: true,
|
|
81
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
82
|
+
})
|
|
83
|
+
], recruitmentGroup.prototype, "sort", 2);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
(0, import_sequelize_typescript.Column)({
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
88
|
+
})
|
|
89
|
+
], recruitmentGroup.prototype, "status", 2);
|
|
90
|
+
__decorateClass([
|
|
91
|
+
(0, import_sequelize_typescript.Column)({
|
|
92
|
+
field: "created_by",
|
|
93
|
+
allowNull: true,
|
|
94
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
95
|
+
})
|
|
96
|
+
], recruitmentGroup.prototype, "createdBy", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
(0, import_sequelize_typescript.Column)({
|
|
99
|
+
field: "created_date",
|
|
100
|
+
allowNull: true,
|
|
101
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
102
|
+
})
|
|
103
|
+
], recruitmentGroup.prototype, "createdDate", 2);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
(0, import_sequelize_typescript.Column)({
|
|
106
|
+
field: "updated_by",
|
|
107
|
+
allowNull: true,
|
|
108
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
109
|
+
})
|
|
110
|
+
], recruitmentGroup.prototype, "updatedBy", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
(0, import_sequelize_typescript.Column)({
|
|
113
|
+
field: "updated_date",
|
|
114
|
+
allowNull: true,
|
|
115
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
116
|
+
})
|
|
117
|
+
], recruitmentGroup.prototype, "updatedDate", 2);
|
|
118
|
+
__decorateClass([
|
|
119
|
+
(0, import_sequelize_typescript.HasMany)(() => recruitment, {
|
|
120
|
+
sourceKey: "id"
|
|
121
|
+
})
|
|
122
|
+
], recruitmentGroup.prototype, "recruitments", 2);
|
|
123
|
+
recruitmentGroup = __decorateClass([
|
|
124
|
+
(0, import_sequelize_typescript.Table)({
|
|
125
|
+
tableName: "recruitment_group",
|
|
126
|
+
timestamps: false
|
|
127
|
+
})
|
|
128
|
+
], recruitmentGroup);
|
|
129
|
+
|
|
130
|
+
// src/databases/tables/recruitment.ts
|
|
131
|
+
var recruitment = class extends import_sequelize_typescript2.Model {
|
|
132
|
+
};
|
|
133
|
+
__decorateClass([
|
|
134
|
+
(0, import_sequelize_typescript2.Column)({
|
|
135
|
+
primaryKey: true,
|
|
136
|
+
autoIncrement: true,
|
|
137
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
138
|
+
})
|
|
139
|
+
], recruitment.prototype, "id", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
(0, import_sequelize_typescript2.ForeignKey)(() => recruitmentGroup),
|
|
142
|
+
(0, import_sequelize_typescript2.Column)({
|
|
143
|
+
field: "group_id",
|
|
144
|
+
allowNull: true,
|
|
145
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
146
|
+
})
|
|
147
|
+
], recruitment.prototype, "groupId", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
(0, import_sequelize_typescript2.Column)({
|
|
150
|
+
field: "position_name",
|
|
151
|
+
allowNull: true,
|
|
152
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
153
|
+
})
|
|
154
|
+
], recruitment.prototype, "positionName", 2);
|
|
155
|
+
__decorateClass([
|
|
156
|
+
(0, import_sequelize_typescript2.Column)({
|
|
157
|
+
field: "account_listed",
|
|
158
|
+
allowNull: true,
|
|
159
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
160
|
+
})
|
|
161
|
+
], recruitment.prototype, "accountListed", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
(0, import_sequelize_typescript2.Column)({
|
|
164
|
+
field: "account_age",
|
|
165
|
+
allowNull: true,
|
|
166
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
167
|
+
})
|
|
168
|
+
], recruitment.prototype, "accountAge", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
(0, import_sequelize_typescript2.Column)({
|
|
171
|
+
field: "account_expires",
|
|
172
|
+
allowNull: true,
|
|
173
|
+
type: import_sequelize_typescript2.DataType.DATEONLY
|
|
174
|
+
})
|
|
175
|
+
], recruitment.prototype, "accountExpires", 2);
|
|
176
|
+
__decorateClass([
|
|
177
|
+
(0, import_sequelize_typescript2.Column)({
|
|
178
|
+
field: "called_position",
|
|
179
|
+
allowNull: true,
|
|
180
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
181
|
+
})
|
|
182
|
+
], recruitment.prototype, "calledPosition", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
(0, import_sequelize_typescript2.Column)({
|
|
185
|
+
allowNull: true,
|
|
186
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
187
|
+
})
|
|
188
|
+
], recruitment.prototype, "status", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
(0, import_sequelize_typescript2.Column)({
|
|
191
|
+
field: "created_by",
|
|
192
|
+
allowNull: true,
|
|
193
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
194
|
+
})
|
|
195
|
+
], recruitment.prototype, "createdBy", 2);
|
|
196
|
+
__decorateClass([
|
|
197
|
+
(0, import_sequelize_typescript2.Column)({
|
|
198
|
+
field: "created_date",
|
|
199
|
+
allowNull: true,
|
|
200
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
201
|
+
})
|
|
202
|
+
], recruitment.prototype, "createdDate", 2);
|
|
203
|
+
__decorateClass([
|
|
204
|
+
(0, import_sequelize_typescript2.Column)({
|
|
205
|
+
field: "updated_by",
|
|
206
|
+
allowNull: true,
|
|
207
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
208
|
+
})
|
|
209
|
+
], recruitment.prototype, "updatedBy", 2);
|
|
210
|
+
__decorateClass([
|
|
211
|
+
(0, import_sequelize_typescript2.Column)({
|
|
212
|
+
field: "updated_date",
|
|
213
|
+
allowNull: true,
|
|
214
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
215
|
+
})
|
|
216
|
+
], recruitment.prototype, "updatedDate", 2);
|
|
217
|
+
__decorateClass([
|
|
218
|
+
(0, import_sequelize_typescript2.BelongsTo)(() => recruitmentGroup)
|
|
219
|
+
], recruitment.prototype, "recruitmentGroup", 2);
|
|
220
|
+
recruitment = __decorateClass([
|
|
221
|
+
(0, import_sequelize_typescript2.Table)({
|
|
222
|
+
tableName: "recruitment",
|
|
223
|
+
timestamps: false
|
|
224
|
+
})
|
|
225
|
+
], recruitment);
|
|
226
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
227
|
+
0 && (module.exports = {
|
|
228
|
+
recruitment
|
|
229
|
+
});
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/recruitmentGroup.ts
|
|
29
|
+
var recruitmentGroup_exports = {};
|
|
30
|
+
__export(recruitmentGroup_exports, {
|
|
31
|
+
recruitmentGroup: () => recruitmentGroup
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(recruitmentGroup_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/recruitment.ts
|
|
37
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
38
|
+
var recruitment = class extends import_sequelize_typescript.Model {
|
|
39
|
+
};
|
|
40
|
+
__decorateClass([
|
|
41
|
+
(0, import_sequelize_typescript.Column)({
|
|
42
|
+
primaryKey: true,
|
|
43
|
+
autoIncrement: true,
|
|
44
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
45
|
+
})
|
|
46
|
+
], recruitment.prototype, "id", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
(0, import_sequelize_typescript.ForeignKey)(() => recruitmentGroup),
|
|
49
|
+
(0, import_sequelize_typescript.Column)({
|
|
50
|
+
field: "group_id",
|
|
51
|
+
allowNull: true,
|
|
52
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
53
|
+
})
|
|
54
|
+
], recruitment.prototype, "groupId", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
(0, import_sequelize_typescript.Column)({
|
|
57
|
+
field: "position_name",
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
], recruitment.prototype, "positionName", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
field: "account_listed",
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
67
|
+
})
|
|
68
|
+
], recruitment.prototype, "accountListed", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
(0, import_sequelize_typescript.Column)({
|
|
71
|
+
field: "account_age",
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
74
|
+
})
|
|
75
|
+
], recruitment.prototype, "accountAge", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
(0, import_sequelize_typescript.Column)({
|
|
78
|
+
field: "account_expires",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: import_sequelize_typescript.DataType.DATEONLY
|
|
81
|
+
})
|
|
82
|
+
], recruitment.prototype, "accountExpires", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
(0, import_sequelize_typescript.Column)({
|
|
85
|
+
field: "called_position",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
88
|
+
})
|
|
89
|
+
], recruitment.prototype, "calledPosition", 2);
|
|
90
|
+
__decorateClass([
|
|
91
|
+
(0, import_sequelize_typescript.Column)({
|
|
92
|
+
allowNull: true,
|
|
93
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
94
|
+
})
|
|
95
|
+
], recruitment.prototype, "status", 2);
|
|
96
|
+
__decorateClass([
|
|
97
|
+
(0, import_sequelize_typescript.Column)({
|
|
98
|
+
field: "created_by",
|
|
99
|
+
allowNull: true,
|
|
100
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
101
|
+
})
|
|
102
|
+
], recruitment.prototype, "createdBy", 2);
|
|
103
|
+
__decorateClass([
|
|
104
|
+
(0, import_sequelize_typescript.Column)({
|
|
105
|
+
field: "created_date",
|
|
106
|
+
allowNull: true,
|
|
107
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
108
|
+
})
|
|
109
|
+
], recruitment.prototype, "createdDate", 2);
|
|
110
|
+
__decorateClass([
|
|
111
|
+
(0, import_sequelize_typescript.Column)({
|
|
112
|
+
field: "updated_by",
|
|
113
|
+
allowNull: true,
|
|
114
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
115
|
+
})
|
|
116
|
+
], recruitment.prototype, "updatedBy", 2);
|
|
117
|
+
__decorateClass([
|
|
118
|
+
(0, import_sequelize_typescript.Column)({
|
|
119
|
+
field: "updated_date",
|
|
120
|
+
allowNull: true,
|
|
121
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
122
|
+
})
|
|
123
|
+
], recruitment.prototype, "updatedDate", 2);
|
|
124
|
+
__decorateClass([
|
|
125
|
+
(0, import_sequelize_typescript.BelongsTo)(() => recruitmentGroup)
|
|
126
|
+
], recruitment.prototype, "recruitmentGroup", 2);
|
|
127
|
+
recruitment = __decorateClass([
|
|
128
|
+
(0, import_sequelize_typescript.Table)({
|
|
129
|
+
tableName: "recruitment",
|
|
130
|
+
timestamps: false
|
|
131
|
+
})
|
|
132
|
+
], recruitment);
|
|
133
|
+
|
|
134
|
+
// src/databases/tables/recruitmentGroup.ts
|
|
135
|
+
var recruitmentGroup = class extends import_sequelize_typescript2.Model {
|
|
136
|
+
};
|
|
137
|
+
__decorateClass([
|
|
138
|
+
(0, import_sequelize_typescript2.Column)({
|
|
139
|
+
primaryKey: true,
|
|
140
|
+
autoIncrement: true,
|
|
141
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
142
|
+
})
|
|
143
|
+
], recruitmentGroup.prototype, "id", 2);
|
|
144
|
+
__decorateClass([
|
|
145
|
+
(0, import_sequelize_typescript2.Column)({
|
|
146
|
+
allowNull: true,
|
|
147
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
148
|
+
})
|
|
149
|
+
], recruitmentGroup.prototype, "uuid", 2);
|
|
150
|
+
__decorateClass([
|
|
151
|
+
(0, import_sequelize_typescript2.Column)({
|
|
152
|
+
field: "key_name",
|
|
153
|
+
allowNull: true,
|
|
154
|
+
type: import_sequelize_typescript2.DataType.STRING(100)
|
|
155
|
+
})
|
|
156
|
+
], recruitmentGroup.prototype, "keyName", 2);
|
|
157
|
+
__decorateClass([
|
|
158
|
+
(0, import_sequelize_typescript2.Column)({
|
|
159
|
+
field: "user_id",
|
|
160
|
+
allowNull: true,
|
|
161
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
162
|
+
})
|
|
163
|
+
], recruitmentGroup.prototype, "userId", 2);
|
|
164
|
+
__decorateClass([
|
|
165
|
+
(0, import_sequelize_typescript2.Column)({
|
|
166
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
167
|
+
})
|
|
168
|
+
], recruitmentGroup.prototype, "name", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
(0, import_sequelize_typescript2.Column)({
|
|
171
|
+
allowNull: true,
|
|
172
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
173
|
+
})
|
|
174
|
+
], recruitmentGroup.prototype, "description", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
(0, import_sequelize_typescript2.Column)({
|
|
177
|
+
allowNull: true,
|
|
178
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
179
|
+
})
|
|
180
|
+
], recruitmentGroup.prototype, "sort", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
(0, import_sequelize_typescript2.Column)({
|
|
183
|
+
allowNull: true,
|
|
184
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
185
|
+
})
|
|
186
|
+
], recruitmentGroup.prototype, "status", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
(0, import_sequelize_typescript2.Column)({
|
|
189
|
+
field: "created_by",
|
|
190
|
+
allowNull: true,
|
|
191
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
192
|
+
})
|
|
193
|
+
], recruitmentGroup.prototype, "createdBy", 2);
|
|
194
|
+
__decorateClass([
|
|
195
|
+
(0, import_sequelize_typescript2.Column)({
|
|
196
|
+
field: "created_date",
|
|
197
|
+
allowNull: true,
|
|
198
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
199
|
+
})
|
|
200
|
+
], recruitmentGroup.prototype, "createdDate", 2);
|
|
201
|
+
__decorateClass([
|
|
202
|
+
(0, import_sequelize_typescript2.Column)({
|
|
203
|
+
field: "updated_by",
|
|
204
|
+
allowNull: true,
|
|
205
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
206
|
+
})
|
|
207
|
+
], recruitmentGroup.prototype, "updatedBy", 2);
|
|
208
|
+
__decorateClass([
|
|
209
|
+
(0, import_sequelize_typescript2.Column)({
|
|
210
|
+
field: "updated_date",
|
|
211
|
+
allowNull: true,
|
|
212
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
213
|
+
})
|
|
214
|
+
], recruitmentGroup.prototype, "updatedDate", 2);
|
|
215
|
+
__decorateClass([
|
|
216
|
+
(0, import_sequelize_typescript2.HasMany)(() => recruitment, {
|
|
217
|
+
sourceKey: "id"
|
|
218
|
+
})
|
|
219
|
+
], recruitmentGroup.prototype, "recruitments", 2);
|
|
220
|
+
recruitmentGroup = __decorateClass([
|
|
221
|
+
(0, import_sequelize_typescript2.Table)({
|
|
222
|
+
tableName: "recruitment_group",
|
|
223
|
+
timestamps: false
|
|
224
|
+
})
|
|
225
|
+
], recruitmentGroup);
|
|
226
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
227
|
+
0 && (module.exports = {
|
|
228
|
+
recruitmentGroup
|
|
229
|
+
});
|
package/package.json
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface recruitmentGroupAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
userId?: number;
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
sort?: number;
|
|
11
|
+
status?: number;
|
|
12
|
+
createdBy?: string;
|
|
13
|
+
createdDate?: Date;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
updatedDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class recruitmentGroup extends Model<recruitmentGroupAttributes, recruitmentGroupAttributes> implements recruitmentGroupAttributes {
|
|
18
|
+
id?: number;
|
|
19
|
+
uuid?: string;
|
|
20
|
+
keyName?: string;
|
|
21
|
+
userId?: number;
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
sort?: number;
|
|
25
|
+
status?: number;
|
|
26
|
+
createdBy?: string;
|
|
27
|
+
createdDate?: Date;
|
|
28
|
+
updatedBy?: string;
|
|
29
|
+
updatedDate?: Date;
|
|
30
|
+
recruitments?: recruitment[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface recruitmentAttributes {
|
|
34
|
+
id?: number;
|
|
35
|
+
groupId?: number;
|
|
36
|
+
positionName?: string;
|
|
37
|
+
accountListed?: number;
|
|
38
|
+
accountAge?: number;
|
|
39
|
+
accountExpires?: string;
|
|
40
|
+
calledPosition?: number;
|
|
41
|
+
status?: string;
|
|
42
|
+
createdBy?: string;
|
|
43
|
+
createdDate?: Date;
|
|
44
|
+
updatedBy?: string;
|
|
45
|
+
updatedDate?: Date;
|
|
46
|
+
}
|
|
47
|
+
declare class recruitment extends Model<recruitmentAttributes, recruitmentAttributes> implements recruitmentAttributes {
|
|
48
|
+
id?: number;
|
|
49
|
+
groupId?: number;
|
|
50
|
+
positionName?: string;
|
|
51
|
+
accountListed?: number;
|
|
52
|
+
accountAge?: number;
|
|
53
|
+
accountExpires?: string;
|
|
54
|
+
calledPosition?: number;
|
|
55
|
+
status?: string;
|
|
56
|
+
createdBy?: string;
|
|
57
|
+
createdDate?: Date;
|
|
58
|
+
updatedBy?: string;
|
|
59
|
+
updatedDate?: Date;
|
|
60
|
+
recruitmentGroup?: recruitmentGroup;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { recruitment as a, type recruitmentGroupAttributes as b, recruitmentGroup as c, type recruitmentAttributes as r };
|