Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
fb5f81e4
Commit
fb5f81e4
authored
Apr 28, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
29967344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
center-manage/app/base/db/initData.js
+2
-1
center-manage/app/base/db/models/common/app.js
+2
-8
No files found.
center-manage/app/base/db/initData.js
View file @
fb5f81e4
...
...
@@ -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
})
...
...
center-manage/app/base/db/models/common/app.js
View file @
fb5f81e4
...
...
@@ -23,10 +23,9 @@ module.exports = (db, DataTypes) => {
detailimgUrl
:
DataTypes
.
STRING
,
//应用详情介绍地址
opCacheUrl
:
DataTypes
.
STRING
,
//操作缓存地址
description
:
DataTypes
.
STRING
,
//应用描述
isS
aas
:
{
isS
ystem
:
{
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment