Module

attachement

Members

Object

# inner constant attachement

View Source api/models/attachement.js, line 40

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

View Source api/models/attachement.js, line 72