Erster Aufbau Forum

This commit is contained in:
Torsten Schulz
2024-10-15 16:28:42 +02:00
parent c31be3f879
commit 663564aa96
163 changed files with 9449 additions and 116 deletions

View File

@@ -0,0 +1,23 @@
import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
const ForumUserPermission = sequelize.define('forum_user_permission', {
userId: {
type: DataTypes.INTEGER,
allowNull: true
},
permissionId: {
type: DataTypes.INTEGER,
allowNull: false
},
forumId: {
type: DataTypes.INTEGER,
allowNull: false
},
}, {
tableName: 'forum_user_permission',
schema: 'forum',
underscored: true
});
export default ForumUserPermission;