feat(bisaya): implement child marriage proposal and wooing features, update age rules and relationships
All checks were successful
Deploy to production / deploy (push) Successful in 3m15s
All checks were successful
Deploy to production / deploy (push) Successful in 3m15s
This commit is contained in:
@@ -633,6 +633,7 @@ export default function setupAssociations() {
|
||||
|
||||
FalukantUser.hasMany(Party, { foreignKey: 'falukantUserId', as: 'parties' });
|
||||
Party.belongsTo(FalukantUser, { foreignKey: 'falukantUserId', as: 'partyUser' });
|
||||
Party.belongsTo(Relationship, { foreignKey: 'relationshipId', as: 'marriageRelationship' });
|
||||
|
||||
Party.belongsToMany(TitleOfNobility, {
|
||||
through: PartyInvitedNobility,
|
||||
|
||||
@@ -14,6 +14,11 @@ Party.init({
|
||||
allowNull: false,
|
||||
field: 'falukant_user_id'
|
||||
},
|
||||
relationshipId: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
field: 'relationship_id'
|
||||
},
|
||||
musicTypeId: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
@@ -41,4 +46,4 @@ Party.init({
|
||||
timestamps: true,
|
||||
underscored: true});
|
||||
|
||||
export default Party;
|
||||
export default Party;
|
||||
|
||||
Reference in New Issue
Block a user