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(
|
|
|
|
'abnormal_claim',
|
|
|
|
{
|
|
|
|
id: {
|
|
|
|
primaryKey: true,
|
|
|
|
type: INTEGER,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: STRING,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
claim_id: {
|
|
|
|
type: STRING,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
is_update: {
|
2018-10-08 19:14:31 +02:00
|
|
|
type: BOOLEAN,
|
2018-09-05 00:40:14 +02:00
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
block_hash: {
|
|
|
|
type: STRING,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
transaction_hash: {
|
|
|
|
type: STRING,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
vout: {
|
|
|
|
type: INTEGER,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
output_id: {
|
|
|
|
type: INTEGER,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
value_as_hex: {
|
|
|
|
type: TEXT,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
value_as_json: {
|
|
|
|
type: TEXT,
|
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
created_at: {
|
2018-10-08 19:14:31 +02:00
|
|
|
type: DATE(6),
|
2018-09-05 00:40:14 +02:00
|
|
|
set() { },
|
|
|
|
},
|
|
|
|
modified_at: {
|
2018-10-08 19:14:31 +02:00
|
|
|
type: DATE(6),
|
2018-09-05 00:40:14 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
);
|