first initialization gallery

This commit is contained in:
Torsten Schulz
2024-09-22 01:26:59 +02:00
parent f1b6dd74f7
commit 7ab6939863
23 changed files with 792 additions and 34 deletions

View File

@@ -0,0 +1,34 @@
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,
references: {
model: 'folder',
key: 'id'
}
},
visibilityUserId: {
type: DataTypes.INTEGER,
allowNull: false,
references: {
model: 'image_visibility_user',
key: 'id'
}
}
}, {
tableName: 'folder_visibility_user',
schema: 'community',
timestamps: false,
underscored: true,
});
export default FolderVisibilityUser;