Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
This commit is contained in:
7
backend/models/community/user_block.js
Normal file
7
backend/models/community/user_block.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { sequelize } from '../../utils/sequelize.js';
|
||||
import { DataTypes } from 'sequelize';
|
||||
|
||||
export default sequelize.define('user_block', {
|
||||
blockerId: { type: DataTypes.INTEGER, allowNull: false },
|
||||
blockedId: { type: DataTypes.INTEGER, allowNull: false },
|
||||
}, { tableName: 'user_block', schema: 'community', underscored: true, timestamps: true });
|
||||
Reference in New Issue
Block a user