text: import { sequelize, Sequelize } from "../databaseGlobalObject";
  
  const Model = Sequelize.Model;
  class User extends Model {}
  
  User.init(
    {
      // attributes
      lastName: {
        type: Sequelize.STRING,
        allowNull: false,
      },
      phoneNumber: {
        type: Sequelize.STRING,
        unique: true,
        allowNull: false,
      },
      password: {
        type: Sequelize.STRING,
        allowNull: false,
      },
      accountType: {
        type: Sequelize.STRING,
        allowNull: false,
      },
    },
    {
      sequelize,
      modelName: "user",
    }
  );
  
  export default User;
  