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.
 
 
 

59 lines
1.3 KiB

const sequelize = require("sequelize");
const db = require("../Config/db");
const market = db.define(
"TB_BCMARKET",
{
MARKET_ID: {
type: sequelize.STRING,
primaryKey: true,
},
DB_CODE: {
type: sequelize.STRING,
},
MARKET_NAME: {
type: sequelize.STRING,
},
MARKET_KHMER_NAME: {
type: sequelize.STRING,
},
AREA_ID: {
type: sequelize.STRING,
},
CITY: {
type: sequelize.STRING,
},
DISTRICT: {
type: sequelize.STRING,
},
OTHER: {
type: sequelize.STRING,
},
IMAGE: {
type: sequelize.BLOB,
},
STATUS: {
type: sequelize.STRING,
},
USER_CREATE: {
type: sequelize.STRING,
},
CREATE_DATE: {
type: sequelize.STRING,
},
USER_UPDATE: {
type: sequelize.STRING,
},
UPDATE_DATE: {
type: sequelize.STRING,
},
MAP: {
type: sequelize.STRING,
},
},
{
timestamps: false,
freezeTableName: true,
}
);
market.removeAttribute("id");
module.exports = market;