Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/models.2/
Upload File :
Current File : /home/infinitibizsol/.trash/models.2/VehicleRunFee.js

module.exports = (sequelize, DataTypes) => {
  const VehicleRunFee = sequelize.define(
    "tblVehicleRunFee",
    {
      vehicle_run_fee_id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      vehicle_run_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        validate: {
          notNull: {
            args: true,
            msg: "The vehicle_run_id cannot be null",
          },
        },
      },
      auctioneer_fee_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        validate: {
          notNull: {
            args: true,
            msg: "The auctioneer_fee_id cannot be null",
          },
        },
      },
      fee_amount: {
        type: DataTypes.FLOAT,
        allowNull: true,
      },
    },
    {
      timestamps: true,
    }
  );

  return VehicleRunFee;
};

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