text: module.exports = {
    up: (queryInterface, Sequelize) =>
      queryInterface.createTable('users', {
        id: {
          type: Sequelize.UUID,
          allowNull: false,
          primaryKey: true,
        },
        name: {
          type: 'VARCHAR(127)',
          allowNull: false,
        },
        email: {
          type: 'VARCHAR(127)',
          allowNull: false,
          unique: true,
        },
        image: {
          type: 'VARCHAR(127)',
          allowNull: true,
        },
        phone: {
          type: 'VARCHAR(11)',
          allowNull: false,
          unique: true,
        },
        password_hash: {
          type: Sequelize.STRING,
          allowNull: false,
        },
        admin: {
          type: Sequelize.BOOLEAN,
          defaultValue: false,
          allowNull: false,
        },
        authenticated: {
          type: Sequelize.BOOLEAN,
          defaultValue: false,
          allowNull: false,
        },
        token: {
          type: Sequelize.STRING,
          allowNull: true,
        },
        created_at: {
          type: Sequelize.DATE,
          allowNull: false,
        },
        updated_at: {
          type: Sequelize.DATE,
          allowNull: false,
        },
      }),
  
    down: (queryInterface) => queryInterface.dropTable('users'),
  };
  