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

32 lines
641 B
JavaScript

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