1
This commit is contained in:
@@ -7,7 +7,7 @@ const Sequelize = require('sequelize');
|
||||
module.exports = (db) => {
|
||||
const job_types = db.define("job_types", {
|
||||
name: {
|
||||
comment: '职位类型名称(如:前端开发、后端开发、全栈开发等)',
|
||||
comment: '职位类型名称:须与 Boss 页 get_job_listings 返回的 Tab 文案 text 完全一致(投递标签)',
|
||||
type: Sequelize.STRING(100),
|
||||
allowNull: false,
|
||||
defaultValue: ''
|
||||
@@ -19,7 +19,7 @@ module.exports = (db) => {
|
||||
defaultValue: ''
|
||||
},
|
||||
commonSkills: {
|
||||
comment: '常见技能关键词(JSON数组)',
|
||||
comment: '常见技能关键词(JSON数组),仅用于简历技能匹配/评分;职位标题过滤请用 titleIncludeKeywords',
|
||||
type: Sequelize.TEXT,
|
||||
allowNull: true,
|
||||
defaultValue: '[]'
|
||||
@@ -30,6 +30,12 @@ module.exports = (db) => {
|
||||
allowNull: true,
|
||||
defaultValue: '[]'
|
||||
},
|
||||
titleIncludeKeywords: {
|
||||
comment: '职位标题须包含的子串(JSON数组),仅按岗位标题匹配;commonSkills 仅用于简历技能匹配,不参与标题过滤',
|
||||
type: Sequelize.TEXT,
|
||||
allowNull: true,
|
||||
defaultValue: '[]'
|
||||
},
|
||||
is_enabled: {
|
||||
comment: '是否启用(1=启用,0=禁用)',
|
||||
type: Sequelize.TINYINT(1),
|
||||
@@ -65,6 +71,8 @@ module.exports = (db) => {
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// job_types.sync({ force: true });
|
||||
|
||||
return job_types;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user