2022-01-12 08:02:30 -07:00
|
|
|
import { DataTypes } from 'sequelize';
|
2021-10-26 16:38:31 -06:00
|
|
|
|
2022-03-21 17:38:56 -06:00
|
|
|
import sequelize from './orm';
|
|
|
|
|
|
|
|
const AthenaActionLog = sequelize.define('athena_action_log', {
|
|
|
|
id: {
|
|
|
|
allowNull: false,
|
|
|
|
autoIncrement: true,
|
|
|
|
primaryKey: true,
|
|
|
|
type: DataTypes.INTEGER,
|
|
|
|
},
|
|
|
|
account_id: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.INTEGER,
|
|
|
|
},
|
|
|
|
device_id: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.INTEGER,
|
|
|
|
},
|
|
|
|
action: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.TEXT,
|
|
|
|
},
|
|
|
|
user_ip: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.TEXT,
|
|
|
|
},
|
|
|
|
device_ip: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.TEXT,
|
|
|
|
},
|
|
|
|
meta: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.TEXT,
|
|
|
|
},
|
|
|
|
created_at: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.BIGINT,
|
|
|
|
},
|
|
|
|
dongle_id: {
|
|
|
|
allowNull: true,
|
|
|
|
type: DataTypes.TEXT,
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
timestamps: false,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default AthenaActionLog;
|