This commit is contained in:
张成
2026-04-08 16:39:27 +08:00
parent 048c40d802
commit f2a8e61016
8 changed files with 597 additions and 66 deletions

View File

@@ -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;
}