This commit is contained in:
2025-04-17 23:32:39 +09:00
commit 5b719b6766
105 changed files with 25653 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
const { DataTypes } = require('sequelize');
const { sequelize } = require('../config/database');
const ClubFeature = sequelize.define('ClubFeature', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
clubId: {
type: DataTypes.INTEGER,
allowNull: false,
references: {
model: 'Clubs',
key: 'id'
}
},
featureId: {
type: DataTypes.INTEGER,
allowNull: false,
references: {
model: 'Features',
key: 'id'
}
},
enabled: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true
},
expiryDate: {
type: DataTypes.DATE,
allowNull: true
},
createdAt: {
type: DataTypes.DATE,
allowNull: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false
}
}, {
tableName: 'ClubFeatures',
timestamps: true
});
module.exports = ClubFeature;