You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
992 B
43 lines
992 B
1 year ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const ProjectUserToken = sequelize.define("projectUserToken", {
|
||
|
token: {
|
||
|
type: DataTypes.UUIDV4,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "token",
|
||
|
autoIncrement: false,
|
||
|
unique: "project_user_token_uindex"
|
||
|
},
|
||
|
projectUserInfo: {
|
||
|
type: DataTypes.JSONB,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "project_user_info",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
expired: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "expired",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "project_user_token",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.ProjectUserToken = ProjectUserToken;
|
||
|
return ProjectUserToken;
|
||
|
};
|