Files
yourpart3/backend/models/falukant/data/underground.js
Torsten Schulz (local) 1ab9407e79
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
2026-07-21 09:08:15 +02:00

31 lines
726 B
JavaScript
Executable File

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: true},
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;