Module

job

Members

Object

# inner constant job

View Source api/models/job.js, line 50

Example
{
 job_id: {
   type: DataTypes.INTEGER,
   primaryKey: boolean,
   allowNull: boolean,
   autoIncrement: boolean
 },
 job_type: {
   type: DataTypes.ENUM,
   values: string[],
   allowNull: boolean
 },
 start_date: {
   type: DataTypes.DATE,
   allowNull: boolean
 },
 end_date: {
   type: DataTypes.DATE,
   allowNull: boolean
 },
 company_name: {
   type: DataTypes.STRING,
   allowNull: boolean
 },
 is_hired: {
   type: DataTypes.BOOLEAN,
   defaultValue: boolean,
   allowNull: boolean
 },
 length_month_hired: {
   type: DataTypes.BOOLEAN,
   allowNull: boolean
 }
}

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/job.js, line 83