/
home
/
infinitibizsol
/
.trash
/
models.1
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/models.1/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", }, user_id: { type: DataTypes.INTEGER, allowNull: true, }, }, { timestamps: true, } ); return Vehicle; };
Copyright ©2k19 -
Hexid
|
Tex7ure