Initial commit
TODO: change api.conf URL references to use environment variables and add these variables to the docker-compose configuration for host domain
This commit is contained in:
25
api/db/models/CourseEvent.js
Normal file
25
api/db/models/CourseEvent.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const Sequelize = require('sequelize');
|
||||
|
||||
module.exports = {
|
||||
notes: {
|
||||
type: Sequelize.DataTypes.STRING(1000),
|
||||
allowNull: true,
|
||||
},
|
||||
runDate: {
|
||||
type: Sequelize.DataTypes.DATEONLY,
|
||||
allowNull: false,
|
||||
defaultValue: Sequelize.DataTypes.NOW
|
||||
},
|
||||
courseTaughtId: {
|
||||
type: Sequelize.DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
createdById: {
|
||||
type: Sequelize.DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
lastModifiedById: {
|
||||
type: Sequelize.DataTypes.INTEGER,
|
||||
allowNull: false,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user