Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
taxh5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
taxh5
Commits
1ec07cff
Commit
1ec07cff
authored
May 08, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taxh5 fix
parent
82837cc4
Pipeline
#7188
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
nodeLimit.js
app/model/nodeLimit.js
+70
-0
No files found.
app/model/nodeLimit.js
0 → 100644
View file @
1ec07cff
'use strict'
;
module
.
exports
=
app
=>
{
const
{
DataTypes
}
=
app
.
Sequelize
;
const
nodeLimit
=
app
.
model
.
define
(
'nodeLimit'
,
{
id
:
{
type
:
DataTypes
.
INTEGER
,
allowNull
:
false
,
autoIncrement
:
true
,
primaryKey
:
true
,
field
:
'id'
,
},
companyName
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
,
field
:
'companyName'
,
},
appKey
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
false
,
field
:
'appKey'
,
},
type
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
,
field
:
'type'
,
},
currentCount
:
{
type
:
DataTypes
.
INTEGER
(
20
),
allowNull
:
true
,
defaultValue
:
0
,
field
:
'currentCount'
,
},
limitCount
:
{
type
:
DataTypes
.
INTEGER
(
20
),
allowNull
:
true
,
defaultValue
:
0
,
field
:
'limitCount'
,
},
createTime
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
defaultValue
:
app
.
Sequelize
.
literal
(
'CURRENT_TIMESTAMP'
),
field
:
'createTime'
,
},
updateTime
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
defaultValue
:
app
.
Sequelize
.
literal
(
'CURRENT_TIMESTAMP'
),
field
:
'updateTime'
,
},
text
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
,
field
:
'text1'
,
},
text2
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
,
field
:
'text2'
,
},
},
{
tableName
:
'node_limit'
,
timestamps
:
false
,
});
return
nodeLimit
;
};
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