Commit fb5f81e4 by 蒋勇

d

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