Files
yourpart3/backend/models/community/folder_visibility_user.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

26 lines
624 B
JavaScript
Executable File

import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
const FolderVisibilityUser = sequelize.define('folder_visibility_user', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true,
allowNull: false
},
folderId: {
type: DataTypes.INTEGER,
allowNull: false
},
visibilityUserId: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
tableName: 'folder_visibility_user',
schema: 'community',
timestamps: false,
underscored: true});
export default FolderVisibilityUser;