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

const interestTranslation = sequelize.define('interest_translation_type', {
    translation: {
        type: DataTypes.STRING,
        allowNull: false
    }, 
    language: { 
        type: DataTypes.INTEGER,
        allowNull: false
    },
    interestsId: {
        type: DataTypes.INTEGER,
        allowNull: false
    }}, {
    tableName: 'interest_translation', 
    schema: 'type',
    underscored: true
});

export default interestTranslation;