spee.ch/server/chainquery/models/TransactionAddressModel.js

35 lines
657 B
JavaScript
Raw Normal View History

const getterMethods = {
// Add as needed, prefix all methods with `generated`
}
export default (sequelize, {
STRING, BOOLEAN, INTEGER, TEXT, DECIMAL
}) => sequelize.define(
'transaction_address',
{
transaction_id: {
primaryKey: true,
type: INTEGER,
set() { },
},
2018-09-26 03:20:59 +02:00
address_id: {
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,
timestamps: false, // don't use default timestamps columns
}
);