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
c65ee2c6
Commit
c65ee2c6
authored
Jul 13, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
3977b6c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
79 deletions
+58
-79
bpo-stat/app/base/db/models/all/load.js
+58
-79
No files found.
bpo-stat/app/base/db/models/all/load.js
View file @
c65ee2c6
/* jshint indent: 2 */
module
.
exports
=
function
(
sequelize
,
DataTypes
)
{
module
.
exports
=
function
(
sequelize
,
DataTypes
)
{
return
sequelize
.
define
(
'load'
,
{
return
sequelize
.
define
(
'load'
,
{
id
:
{
company_id
:
DataTypes
.
INTEGER
,
type
:
DataTypes
.
INTEGER
(
11
),
company_name
:
DataTypes
.
STRING
,
allowNull
:
false
,
usc_code
:
DataTypes
.
STRING
,
primaryKey
:
true
,
name
:
DataTypes
.
STRING
,
autoIncrement
:
true
phone_no
:
DataTypes
.
STRING
,
},
id_no
:
DataTypes
.
INTEGER
,
company_name
:
{
bankno
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
(
255
),
workload
:
DataTypes
.
STRING
,
allowNull
:
true
compre_salary
:
DataTypes
.
DECIMAL
,
},
begin_time
:
DataTypes
.
DATE
,
usc_code
:
{
end_time
:
DataTypes
.
DATE
,
type
:
DataTypes
.
STRING
(
255
),
affirm_time
:
DataTypes
.
DATE
,
allowNull
:
true
sign_body_id
:
DataTypes
.
INTEGER
,
},
sign_body
:
DataTypes
.
STRING
,
name
:
{
redundance_1
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
(
255
),
redundance_2
:
DataTypes
.
STRING
,
allowNull
:
true
redundance_3
:
DataTypes
.
STRING
,
},
redundance_4
:
DataTypes
.
STRING
,
phone_no
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
},
id_no
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
},
bankno
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
},
workload
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
},
compre_salary
:
{
type
:
DataTypes
.
DECIMAL
,
allowNull
:
true
},
affirm_time
:
{
type
:
DataTypes
.
DECIMAL
,
allowNull
:
true
},
created_at
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
},
updated_at
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
},
deleted_at
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
},
version
:
{
type
:
DataTypes
.
INTEGER
(
11
),
allowNull
:
true
,
defaultValue
:
'0'
},
redundance_1
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
},
redundance_2
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
},
redundance_3
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
},
redundance_4
:
{
type
:
DataTypes
.
STRING
(
255
),
allowNull
:
true
}
},
{
},
{
tableName
:
'load_info'
tableName
:
'load_info'
,
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
false
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
validate
:
{},
indexes
:
[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
});
};
};
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