Files
yourpart3/backend/models/chat/rights.js
Torsten Schulz (local) 1ab9407e79
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
2026-07-21 09:08:15 +02:00

23 lines
473 B
JavaScript
Executable File

import { DataTypes } from 'sequelize';
import { sequelize } from '../../utils/sequelize.js';
const ChatRight = sequelize.define('ChatRight', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
tr: {
type: DataTypes.STRING(32),
allowNull: false,
unique: true
}
}, {
schema: 'chat',
tableName: 'rights',
timestamps: false,
underscored: true
});
export default ChatRight;