text: const { Sequelize, DataTypes } = require("sequelize");
  const db = require("../config/database.js");
  
  const User = db.define("User", {
      id: {
          type: DataTypes.UUID,
          primaryKey: true,
          defaultValue: DataTypes.UUIDV4,
          allowNull: false
      },
  
      firstName: {
          type: DataTypes.STRING(),
          required: true,
          allowNull: false
      },
  
      lastName: {
          type: DataTypes.STRING(),
          required: true,
          allowNull: false
      },
  
      email: {
          type: DataTypes.STRING(320),
          required: true,
          unique: true,
          allowNull: false
      },
  
      username: {
          type: DataTypes.STRING(20),
          required: true,
          unique: true,
          allowNull: false
      },
  
      password: {
          type: DataTypes.STRING(80),
          required: true,
          allowNull: false
      },
  
      bio: {
          type: DataTypes.STRING(300),
          allowNull: true
      },
  
      bgColor: {
          type: DataTypes.STRING(),
          defaultValue: "#f2f2f2",
          allowNull: false
      },
  
      linkBgColor: {
          type: DataTypes.STRING(),
          defaultValue: "#ffffff",
          allowNull: false
      },
  
      linkColor: {
          type: DataTypes.STRING(),
          defaultValue: "#404040",
          allowNull: false,
      },
  
      textColor: {
          type: DataTypes.STRING(),
          defaultValue: "#404040",
          allowNull: false
      },
  
      views: {
          type: DataTypes.INTEGER(),
          defaultValue: 0,
          allowNull: false
      },
  
      created_at: {
          type: DataTypes.DATE
      },
  
      tableName: "Users"
  })
  
  module.exports = User