import { Model, DataTypes } from 'sequelize'; import { sequelize } from '../../../utils/sequelize.js'; class Underground extends Model { } Underground.init({ undergroundTypeId: { type: DataTypes.STRING, allowNull: false}, performerId: { type: DataTypes.INTEGER, allowNull: false}, victimId: { type: DataTypes.INTEGER, allowNull: false}, parameters: { type: DataTypes.JSON, allowNull: true}, result: { type: DataTypes.JSON, allowNull: true} }, { sequelize, modelName: 'Underground', tableName: 'underground', schema: 'falukant_data', timestamps: true, underscored: true}); export default Underground;