Sindbad~EG File Manager

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

module.exports = (sequelize, DataTypes) => {
  const Vehicle = sequelize.define(
    "tblVehicle",
    {
      vehicle_id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      vin: {
        type: DataTypes.STRING,
      },
      year: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
      make: {
        type: DataTypes.STRING,
        allowNull: true,
      },
      model: {
        type: DataTypes.STRING,
        allowNull: true,
      },
      trim: {
        type: DataTypes.STRING,
        allowNull: true,
      },
      mileage: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
      color: {
        type: DataTypes.STRING,
        allowNull: true,
      },
      color_name: {
        type: DataTypes.STRING,
        defaultValue: "Black",
      },
      details: {
        type: DataTypes.TEXT,
        allowNull: true,
      },
      imageUrl: {
        type: DataTypes.STRING,

        defaultValue: "preview.png",
      },
      opportunity_id: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
      user_id: {
        type: DataTypes.INTEGER,
        allowNull: true,
      },
    },
    {
      timestamps: true,
    }
  );

  return Vehicle;
};

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