27 lines
642 B
JavaScript
Executable File
27 lines
642 B
JavaScript
Executable File
import { sequelize } from '../../utils/sequelize.js';
|
|
import { DataTypes } from 'sequelize';
|
|
|
|
const EroticVideoVisibilityUser = sequelize.define('erotic_video_visibility_user', {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
autoIncrement: true,
|
|
primaryKey: true,
|
|
allowNull: false
|
|
},
|
|
eroticVideoId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false
|
|
},
|
|
userId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false
|
|
}
|
|
}, {
|
|
tableName: 'erotic_video_visibility_user',
|
|
timestamps: false,
|
|
underscored: true,
|
|
schema: 'community'
|
|
});
|
|
|
|
export default EroticVideoVisibilityUser;
|