Some falukant fixes, added undeground ui - no save right now, changed menu (and verification)
This commit is contained in:
36
backend/models/falukant/data/underground.js
Normal file
36
backend/models/falukant/data/underground.js
Normal file
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user