明树Git Lab

Commit ce22feb2 authored by zfp1's avatar zfp1

update

parent e541bf62
......@@ -145,6 +145,7 @@ module.exports = {
deleteResource,
listResource,
createResourceInfo,
updateResourceInfo,
deleteResourceInfo,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
// 建设规模
// 核心边界条件
const projectBjtj = sequelize.define('projectBjtj', {
// 定义字段
id: {
type: DataTypes.INTEGER,
primaryKey: true,
......
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
// 建设规模
// 财务评价指标
const projectCwpjzb = sequelize.define('projectCwpjzb', {
// 定义字段
id: {
type: DataTypes.INTEGER,
primaryKey: true,
......
......@@ -9,11 +9,11 @@ const projectGdxx = sequelize.define('projectGdxx', {
primaryKey: true,
autoIncrement: true
},
type: {
gdlx: {
type: DataTypes.STRING,
comment: "股东类型"
},
name: {
gdmc: {
type: DataTypes.STRING,
comment: "股东名称"
},
......
......@@ -3,7 +3,6 @@ const sequelize = require('../index');
// 建设规模
const projectJsgm = sequelize.define('projectJsgm', {
// 定义字段
id: {
type: DataTypes.INTEGER,
primaryKey: true,
......
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
const ProjectStage = sequelize.define('ProjectStage', {
// 定义字段
// 审批意见
const projectSpyj = sequelize.define('projectSpyj', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
lx: {
type: DataTypes.STRING,
comment: "指标名称"
},
pfyj: {
type: DataTypes.TEXT,
comment: "批复意见"
},
pfyjsj: {
type: DataTypes.DATE,
comment: "批复意见时间"
},
projectId: {
type: DataTypes.INTEGER,
comment: "所属项目ID",
},
del: {
type: DataTypes.INTEGER,
defaultValue: 0,
comment: "0 正常 1 删除"
},
}, {
tableName: 'system_project', // 指定表名(如果与模型名不同)
tableName: 'jt_project_spyj', // 指定表名(如果与模型名不同)
timestamps: true, // 是否自动添加 createdAt 和 updatedAt 字段(覆盖全局设置)
});
// 同步模型到数据库(创建表)
ProjectStage.sync({
projectSpyj.sync({
// force: false,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
.then(() => {
console.log('ProjectStage 表同步成功');
console.log('projectSpyj 表同步成功');
});
module.exports = ProjectStage;
\ No newline at end of file
module.exports = projectSpyj;
\ No newline at end of file
const { DataTypes } = require('sequelize');
const sequelize = require('../index');
// 建设规模
// 项目总投资总额(全口径)
const projectXmtzze = sequelize.define('projectXmtzze', {
// 定义字段
id: {
type: DataTypes.INTEGER,
primaryKey: true,
......@@ -11,7 +10,7 @@ const projectXmtzze = sequelize.define('projectXmtzze', {
},
xh: {
type: DataTypes.STRING,
comment: ""
comment: "序号"
},
zb: {
type: DataTypes.STRING,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment