You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
const Sequelize = require ( 'sequelize' ) ;
module . exports = function ( sequelize , DataTypes ) {
return sequelize . define ( 'heytrip_ids' , {
hotel _id : {
type : DataTypes . BIGINT ,
allowNull : false ,
primaryKey : true
} ,
last _modify _time : {
type : DataTypes . DATE ,
allowNull : true ,
defaultValue : Sequelize . Sequelize . literal ( 'CURRENT_TIMESTAMP' )
} ,
update _flag : {
type : DataTypes . TINYINT ,
allowNull : true ,
defaultValue : 1 ,
comment : "状态, 0更新完成, 1待更新"
} ,
priority : {
type : DataTypes . TINYINT ,
allowNull : true ,
comment : "优先级:low: 10 , normal: 0 , medium: -5 , high: -10 , critical: -15"
} ,
page _index : {
type : DataTypes . INTEGER ,
allowNull : true
}
} , {
sequelize ,
tableName : 'heytrip_ids' ,
timestamps : false ,
indexes : [
{
name : "PRIMARY" ,
unique : true ,
using : "BTREE" ,
fields : [
{ name : "hotel_id" } ,
]
} ,
]
} ) ;
} ;