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.
54 lines
1.1 KiB
54 lines
1.1 KiB
9 months ago
|
const sequelize = require("sequelize");
|
||
|
const db = require("../Config/db");
|
||
|
const dbinfo = db.define(
|
||
|
"SIDBINFO",
|
||
|
{
|
||
|
DB_CODE: {
|
||
|
type: sequelize.STRING,
|
||
|
primaryKey: true,
|
||
|
},
|
||
|
DB_NAME: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
DATE_DEFAULT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
DATE_FORMAT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
SA_DECIMAL: {
|
||
|
type: sequelize.INTEGER,
|
||
|
},
|
||
|
SB_DECICMA: {
|
||
|
type: sequelize.INTEGER,
|
||
|
},
|
||
|
DEC_SEP: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
THO_SEP: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
DB_STAT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
USER_CREA: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
DATE_CREA: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
USER_UPDT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
DATE_UPDT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
}
|
||
|
);
|
||
|
dbinfo.removeAttribute("id");
|
||
|
module.exports = dbinfo;
|