Refactor multiple models to remove foreign key references while maintaining required fields, enhancing data integrity and simplifying model definitions.
This commit is contained in:
@@ -10,13 +10,11 @@ PromotionalGiftCharacterTrait.init(
|
||||
giftId: {
|
||||
type: DataTypes.INTEGER,
|
||||
field: 'gift_id',
|
||||
references: { model: PromotionalGift, key: 'id' },
|
||||
allowNull: false
|
||||
},
|
||||
traitId: {
|
||||
type: DataTypes.INTEGER,
|
||||
field: 'trait_id',
|
||||
references: { model: CharacterTrait, key: 'id' },
|
||||
allowNull: false
|
||||
},
|
||||
suitability: {
|
||||
|
||||
Reference in New Issue
Block a user