File: /var/www/javago-nodeserver-hotfixes/src/models/cafe_loyalty_stamp_excluded_items.model.js
import Sequelize from "sequelize";
import sequelize from "../config/database.config.js";
import sequelizePaginate from "sequelize-paginate";
const CafeLoyaltyStampsExcludedItems = sequelize.define(
"cafe_loyalty_stamp_excluded_items",
{
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false,
},
item_id: {
type: Sequelize.STRING,
allowNull: false,
defaultValue: "",
},
stamp_id: {
type: Sequelize.BIGINT,
allowNull: false,
},
cafe_menu_id: {
type: Sequelize.BIGINT,
allowNull: false,
},
created_at: {
type: Sequelize.INTEGER(10),
defaultValue: 0,
},
updated_at: {
type: Sequelize.INTEGER(10),
defaultValue: 0,
},
},
{
tableName: "cafe_loyalty_stamp_excluded_items",
timestamps: false,
}
);
sequelizePaginate.paginate(CafeLoyaltyStampsExcludedItems);
CafeLoyaltyStampsExcludedItems.sync();
export default CafeLoyaltyStampsExcludedItems;