Files
17th-Battalion-Tracker/api/db/models/Award.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

37 lines
742 B
JavaScript

const Sequelize = require('sequelize');
module.exports = {
name: {
type: Sequelize.DataTypes.STRING(100),
allowNull: false,
},
shortName: {
type: Sequelize.DataTypes.STRING(70),
allowNull: false
},
description: {
type: Sequelize.DataTypes.STRING(1000),
allowNull: true
},
category: {
type: Sequelize.DataTypes.STRING(100),
allowNull: false
},
imageUrl: {
type: Sequelize.DataTypes.STRING,
allowNull: true,
isUrl: true
},
footprint: {
type: Sequelize.DataTypes.STRING(45),
allowNull: false
},
createdById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
lastModifiedById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
};