Commit fb5f81e4 by 蒋勇

d

parent 29967344
...@@ -14,7 +14,8 @@ db.sync({force:true}).then(async ()=>{ ...@@ -14,7 +14,8 @@ db.sync({force:true}).then(async ()=>{
let appnew=await apps.create( { let appnew=await apps.create( {
"name":"center-app", "name":"center-app",
"domainName":"t9.com", "domainName":"t9.com",
"backend":"192.168.4.1" "backend":"192.168.4.1",
"isSystem":true
}); });
let Role=db.models["role"]; let Role=db.models["role"];
await Role.create({code:"ta",name:"租户",isSystem:true,app_id:appnew.id,company_id:settings.pmcompanyid}) await Role.create({code:"ta",name:"租户",isSystem:true,app_id:appnew.id,company_id:settings.pmcompanyid})
......
...@@ -23,10 +23,9 @@ module.exports = (db, DataTypes) => { ...@@ -23,10 +23,9 @@ module.exports = (db, DataTypes) => {
detailimgUrl: DataTypes.STRING,//应用详情介绍地址 detailimgUrl: DataTypes.STRING,//应用详情介绍地址
opCacheUrl: DataTypes.STRING,//操作缓存地址 opCacheUrl: DataTypes.STRING,//操作缓存地址
description: DataTypes.STRING,//应用描述 description: DataTypes.STRING,//应用描述
isSaas: { isSystem: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
allowNull: false, defaultValue: false
defaultValue: true
},//是否启用 },//是否启用
isEnabled: { isEnabled: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
...@@ -38,11 +37,6 @@ module.exports = (db, DataTypes) => { ...@@ -38,11 +37,6 @@ module.exports = (db, DataTypes) => {
allowNull: false, allowNull: false,
defaultValue: false defaultValue: false
},//是否对外 },//是否对外
isCommon: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false
},//是否公共服务
appType: { appType: {
type: DataTypes.ENUM, type: DataTypes.ENUM,
allowNull: true, allowNull: true,
......
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