Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/models.1/
Upload File :
Current File : /home/infinitibizsol/.trash/models.1/vehicleRun.js

module.exports = (sequelize, DataTypes) => {
  const vehicleRun = sequelize.define(
    "tblVehicleRun",
    {
      vehicle_run_id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      vehicle_id: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
      opportunity_id: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
      //Red=1
      //Yellow=2
      //Green=3
      condition_light: {
        type: DataTypes.INTEGER,
        defaultValue: 4,
      },

      announcements: {
        type: DataTypes.STRING,
        allowNull: true,
      },

      reserve: {
        type: DataTypes.FLOAT,
        allowNull: true,
      },

      sale_price: {
        type: DataTypes.FLOAT,
        allowNull: true,
      },

      vehicle_total_fee: {
        type: DataTypes.FLOAT,
        allowNull: true,
      },
      net_proceed: {
        type: DataTypes.FLOAT,
        allowNull: true,
      },
      sale_status: {
        type: DataTypes.BOOLEAN,
        defaultValue: false,
      },

      run_no: {
        type: DataTypes.STRING,
        allowNull: true,
      },

      lane_id: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
    },
    {
      timestamps: true,
    }
  );

  return vehicleRun;
};

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