Sindbad~EG File Manager

Current Path : /home/infinitibizsol/autocrm.infinitibizsol.com/models/
Upload File :
Current File : /home/infinitibizsol/autocrm.infinitibizsol.com/models/UserSubscriptionAuctioneer.js

module.exports = (sequelize, DataTypes) => {
  const UserSubAuctioneer = sequelize.define(
    "tblUserSubAuctioneer",
    {
      subscription_id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      
      user_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        validate: {
          notNull: {
            args: true,
            msg: "The user_id cannot be null",
          },
        },
      },

      auctioneer_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        validate: {
          notNull: {
            args: true,
            msg: "The auctioneer_id cannot be null",
          },
        },
      },
      
       renew: {
        type: DataTypes.BOOLEAN,
        defaultValue: true,
      },
      
      start_date: { type: DataTypes.DATE, allowNull: false },
      
      last_payment_date: { type: DataTypes.DATE, allowNull: false },
    },
    {
      timestamps: true,
    }
  );

  return UserSubAuctioneer;
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists