25 lines
700 B
JavaScript
Executable File
25 lines
700 B
JavaScript
Executable File
import { DataTypes } from 'sequelize';
|
|
import { sequelize } from '../../utils/sequelize.js';
|
|
import ChatUser from './user.js';
|
|
import ChatRight from './rights.js';
|
|
|
|
const ChatUserRight = sequelize.define('ChatUserRight', {
|
|
chatUserId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
primaryKey: true,
|
|
references: null, // Assoziation wird separat gesetzt
|
|
},
|
|
chatRightId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
primaryKey: true,
|
|
references: null, // Assoziation wird separat gesetzt
|
|
}}, {
|
|
schema: 'chat',
|
|
tableName: 'user_rights',
|
|
timestamps: false,
|
|
underscored: true});
|
|
|
|
export default ChatUserRight;
|