page.js
432 Bytes
"use strict";
module.exports = (app) => {
const { INTEGER, STRING, BOOLEAN } = app.Sequelize;
const Page = app.model.define(
"page",
{
id: {
type: INTEGER,
primaryKey: true,
autoIncrement: true,
},
pageId: STRING(64),
pageName: STRING(64),
},
{
timestamps: true,
createdAt: "create_date",
updatedAt: "update_date",
}
);
return Page;
};