Files
yourpart3/backend/models/falukant/data/underground.js

31 lines
726 B
JavaScript

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;