Files
17th-Battalion-Tracker/api/db/models/Rank.model.js
IndigoFox 9f2473801c Initial commit
TODO: change api.conf URL references to use environment variables and add these variables to the docker-compose configuration for host domain
2023-03-28 00:08:50 -07:00

35 lines
693 B
JavaScript

const Sequelize = require('sequelize');
module.exports = {
name: {
type: Sequelize.DataTypes.STRING(100),
allowNull: false,
unique: true
},
shortName: {
type: Sequelize.DataTypes.STRING(70),
allowNull: false
},
category: {
type: Sequelize.DataTypes.STRING(100),
allowNull: false
},
sortId: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
defaultValue: 0
},
imageUrl: {
type: Sequelize.DataTypes.STRING(240),
allowNull: true,
isUrl: true
},
createdById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
lastModifiedById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
};