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.
74 lines
1.6 KiB
74 lines
1.6 KiB
9 months ago
|
const sequelize = require("sequelize");
|
||
|
const db = require("../Config/db");
|
||
|
const CustomerAnalysis = db.define(
|
||
|
"SIADDANAL",
|
||
|
{
|
||
|
DB_CODE: {
|
||
|
type: sequelize.STRING,
|
||
|
// primaryKey: true,
|
||
|
// autoIncrement: true
|
||
|
},
|
||
|
ADD_CODE: {
|
||
|
primaryKey: true,
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ACC_CODE: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C0: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C1: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C2: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C3: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C4: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C5: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C6: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C7: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C8: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ANAL_C9: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
ADD_MISC: {
|
||
|
type: sequelize.FLOAT,
|
||
|
},
|
||
|
ADD_TYPE: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
TRANS_PRES: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
USER_CREA: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
USER_UPDT: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
USER_CODE: {
|
||
|
type: sequelize.STRING,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
}
|
||
|
);
|
||
|
CustomerAnalysis.removeAttribute("id");
|
||
|
module.exports = CustomerAnalysis;
|