transfer_national.js
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* jshint indent: 2 */
const moment = require("moment");
module.exports = function (sequelize, DataTypes) {
return sequelize.define('transfer_national', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
name: {
type: DataTypes.STRING(50),
allowNull: true
},
link: {
type: DataTypes.STRING(255),
allowNull: true
},
created_at: {
type: DataTypes.BIGINT,
allowNull: true,
get() {
return moment(this.getDataValue('created_at')).format('YYYY-MM-DD HH:mm:ss');
}
},
updated_at: {
type: DataTypes.BIGINT,
allowNull: true,
get() {
return moment(this.getDataValue('updated_at')).format('YYYY-MM-DD HH:mm:ss');
}
}
}, {
tableName: 'transfer_national'
});
};
//# sourceMappingURL=transfer_national.js.map