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.

37 lines
733 B
JavaScript

10 months ago
import Sequelize from 'sequelize';
export default function(sequelize, DataTypes) {
return sequelize.define('cache_availability', {
sn: {
autoIncrement: true,
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
hotel_id: {
type: DataTypes.BIGINT,
allowNull: false
}
}, {
sequelize,
tableName: 'cache_availability',
timestamps: false,
indexes: [
{
name: "PRIMARY",
unique: true,
using: "BTREE",
fields: [
{ name: "sn" },
]
},
{
name: "cache_availability_hotel_id_IDX",
using: "BTREE",
fields: [
{ name: "hotel_id" },
]
},
]
});
};