Module

compta

Members

Object

# inner constant compta

View Source api/models/compta.js, line 44

Example
{
 compta_id: {
   type: DataTypes.INTEGER,
   primaryKey: boolean,
   allowNull: boolean,
   autoIncrement: boolean
 },
 payment_type: {
   type: DataTypes.ENUM,
   values: string[],
   allowNull: boolean
 },
 relance: {
   type: DataTypes.BOOLEAN,
   defaultValue: boolean,
   allowNull: boolean
 },
 paid: {
   type: DataTypes.BOOLEAN,
   defaultValue: boolean,
   allowNull: boolean
 },
 payment_due: {
   type: DataTypes.DECIMAL,
   defaultValue: number,
   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/compta.js, line 75