Module

planning

Members

Object

# inner constant planning

View Source api/models/planning.js, line 47

Example
{
 planning_id: {
   type: DataTypes.INTEGER,
   primaryKey: boolean,
   allowNull: boolean,
   autoIncrement: boolean
 },
 start_date: {
   type: DataTypes.DATE,
   allowNull: boolean,
   validate: { isDate: boolean }
 },
 end_date: {
   type: DataTypes.DATE,
   allowNull: boolean,
   validate: { isDate: boolean }
 },
 event_name: {
		type: DataTypes.STRING,
		allowNull: boolean,
	},
	event_type: {
		type: DataTypes.STRING,
		allowNull: boolean,
	},
	year: {
		type: DataTypes.SMALLINT,
		allowNull: boolean,
		validate: { min: int },
	},
}

Methods

# static define(sequelize, name)

Define the model

Parameters:
Name Type Description
sequelize Sequelize
name string

The file name used for the definition

View Source api/models/planning.js, line 90