You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
215 lines
5.0 KiB
215 lines
5.0 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const Member = sequelize.define("member", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "member_id_uindex"
|
||
|
},
|
||
|
pepUserId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: "项企用户id",
|
||
|
primaryKey: false,
|
||
|
field: "pep_user_id",
|
||
|
autoIncrement: false,
|
||
|
unique: "member_pep_user_id_uindex"
|
||
|
},
|
||
|
idNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "证件号",
|
||
|
primaryKey: false,
|
||
|
field: "id_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
idPhoto: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "证件照",
|
||
|
primaryKey: false,
|
||
|
field: "id_photo",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
gender: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "性别",
|
||
|
primaryKey: false,
|
||
|
field: "gender",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
birthday: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "出生年月",
|
||
|
primaryKey: false,
|
||
|
field: "birthday",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
nativePlace: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "籍贯",
|
||
|
primaryKey: false,
|
||
|
field: "native_place",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
marital: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "婚育状态",
|
||
|
primaryKey: false,
|
||
|
field: "marital",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
politicsStatus: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "整治面貌",
|
||
|
primaryKey: false,
|
||
|
field: "politics_status",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
phoneNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "phone_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
workPlace: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "工作地点",
|
||
|
primaryKey: false,
|
||
|
field: "work_place",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
graduatedFrom: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "毕业院校",
|
||
|
primaryKey: false,
|
||
|
field: "graduated_from",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
educationBackground: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "学历",
|
||
|
primaryKey: false,
|
||
|
field: "education_background",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
specialty: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "专业",
|
||
|
primaryKey: false,
|
||
|
field: "specialty",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
graduationDate: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "毕业时间",
|
||
|
primaryKey: false,
|
||
|
field: "graduation_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
hiredate: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "入职时间",
|
||
|
primaryKey: false,
|
||
|
field: "hiredate",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
turnProbationPeriod: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "转试用期时间",
|
||
|
primaryKey: false,
|
||
|
field: "turn_probation_period",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
regularDate: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "转正时间",
|
||
|
primaryKey: false,
|
||
|
field: "regular_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
dimissionDate: {
|
||
|
type: DataTypes.DATEONLY,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "离职时间",
|
||
|
primaryKey: false,
|
||
|
field: "dimission_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
experienceYear: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "工作经验/年",
|
||
|
primaryKey: false,
|
||
|
field: "experience_year",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
occupationalHistory: {
|
||
|
type: DataTypes.TEXT,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "工作经历",
|
||
|
primaryKey: false,
|
||
|
field: "occupational_history",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vitae: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "简历",
|
||
|
primaryKey: false,
|
||
|
field: "vitae",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "member",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.Member = Member;
|
||
|
return Member;
|
||
|
};
|