'use strict';

module.exports = function (sequelize, DataTypes) {
    const SpeakerValue = sequelize.define('SpeakerValue', {
        speakerId: {
            type: DataTypes.UUID,
            primaryKey: true,
            allowNull: false,
        },
        valueId: {
            type: DataTypes.UUID,
            primaryKey: true,
            allowNull: false,
        },
    }, {
        tableName: 'speakers_values',
        freezeTableName: true,
        timestamps: true,
    });

    return SpeakerValue;
};