Members
Object
# inner constant attachement
Example
{
attachement_id: {
type: DataTypes.INTEGER,
primaryKey: boolean,
autoIncrement: boolean,
allowNull: boolean
},
name: {
type: DataTypes.TEXT,
allowNull: boolean
},
path: {
type: DataTypes.TEXT,
allowNull: boolean
},
size: {
type: DataTypes.INTEGER,
allowNull: boolean
},
type: {
type: DataTypes.TEXT,
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 |