2018-09-05 00:40:14 +02:00
|
|
|
const getterMethods = {
|
|
|
|
// Add as needed, prefix all methods with `generated`
|
|
|
|
}
|
|
|
|
|
|
|
|
export default (sequelize, {
|
2018-10-08 19:14:31 +02:00
|
|
|
BOOLEAN,
|
|
|
|
DATE,
|
|
|
|
DECIMAL,
|
|
|
|
INTEGER,
|
|
|
|
STRING,
|
|
|
|
TEXT,
|
2018-09-05 00:40:14 +02:00
|
|
|
}) => sequelize.define(
|
|
|
|
'transaction_address',
|
|
|
|
{
|
|
|
|
transaction_id: {
|
|
|
|
primaryKey: true,
|
|
|
|
type: INTEGER,
|
|
|
|
set() { },
|
|
|
|
},
|
2018-09-26 03:20:59 +02:00
|
|
|
address_id: {
|
2018-09-05 00:40:14 +02:00
|
|
|
primaryKey: true,
|
|
|
|
type: INTEGER,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
debit_amount: {
|
|
|
|
type: DECIMAL(18, 8),
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
credit_amount: {
|
|
|
|
type: DECIMAL(18, 8),
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
freezeTableName: true,
|
2018-09-26 03:20:59 +02:00
|
|
|
//getterMethods,
|
2018-09-05 00:40:14 +02:00
|
|
|
timestamps: false, // don't use default timestamps columns
|
|
|
|
}
|
|
|
|
);
|