Some fixes and additions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// falukant/predefine/political_office_prerequisite.js
|
||||
// models/falukant/predefine/political_office_prerequisite.js
|
||||
|
||||
import { Model, DataTypes } from 'sequelize';
|
||||
import { sequelize } from '../../../utils/sequelize.js';
|
||||
|
||||
@@ -10,10 +11,13 @@ PoliticalOfficePrerequisite.init({
|
||||
primaryKey: true,
|
||||
autoIncrement: true,
|
||||
},
|
||||
political_office_id: {
|
||||
|
||||
// Neu: Feld heißt jetzt eindeutig "office_type_id"
|
||||
office_type_id: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
|
||||
prerequisite: {
|
||||
type: DataTypes.JSONB,
|
||||
allowNull: false,
|
||||
|
||||
Reference in New Issue
Block a user