import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';

const Interest = sequelize.define('interest_type', {
    name: {
        type: DataTypes.STRING,
        allowNull: false
    },
    allowed: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
        defaultValue: false
    },
    adultOnly: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
        defaultValue: true}
}, {
    tableName: 'interest',
    schema: 'type',
    underscored: true
});

export default Interest;