const Sequelize = require("sequelize");
const sequelizeConnect = require("../connection/db");

const InternalFormsSubmissionsValues = sequelizeConnect.define(
  "InternalFormsSubmissionsValues",
  {
    id: {
      type: Sequelize.UUID,
      defaultValue: Sequelize.UUIDV4,
      primaryKey: true,
      allowNull: false,
    },
    internal_form_submission_id: {
      type: Sequelize.UUID,
      allowNull: false,
    },
    internal_form_field_id: {
      type: Sequelize.UUID,
      allowNull: false,
    },
    value: {
      type: Sequelize.STRING,
      allowNull: false,
    },
  }
);

module.exports = InternalFormsSubmissionsValues;
