Class: HeadquarterWithoutRequiredConstraint

HeadquarterWithoutRequiredConstraint(data)

headquarter-without-required-constraint model class

Constructor

new HeadquarterWithoutRequiredConstraint(data)

Create a new headquarter-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

HeadquarterWithoutRequiredConstraint
HeadquarterWithoutRequiredConstraint

Members

address :string

Type:
  • string
Source:

address :string

Type:
  • string
Source:

city :string

Type:
  • string
Source:

city :string

Type:
  • string
Source:

company :any

JSON dictionary representing the company instance or FK when creating / updating / not populated

Type:
  • any
Source:

company :any

JSON dictionary representing the company instance or FK when creating / updating / not populated

Type:
  • any
Source:

country :string

Type:
  • string
Source:

country :string

Type:
  • string
Source:

createdAt :number

Type:
  • number
Source:

createdAt :number

Type:
  • number
Source:

createdBy :any

The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated

Type:
  • any
Source:

createdBy :any

The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated

Type:
  • any
Source:

description :string

Headquarter notes

Type:
  • string
Source:

description :string

Headquarter notes

Type:
  • string
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

isLegal :boolean

Type:
  • boolean
Source:

isLegal :boolean

Type:
  • boolean
Source:

phone :string

Headquarter office number

Type:
  • string
Source:

phone :string

Headquarter office number

Type:
  • string
Source:

postalCode :string

Type:
  • string
Source:

postalCode :string

Type:
  • string
Source:

shipping :boolean

Type:
  • boolean
Source:

shipping :boolean

Type:
  • boolean
Source:

state :string

Type:
  • string
Source:

state :string

Type:
  • string
Source:

updatedAt :number

Type:
  • number
Source:

updatedAt :number

Type:
  • number
Source:

Methods

toJSON() → {Object}

Convert the model to a plain object

Source:
Returns:
  • Plain object representation
Type
Object

toJSON() → {Object}

Convert the model to a plain object

Source:
Returns:
  • Plain object representation
Type
Object

validate() → {Object}

Validate the model

Source:
Returns:
  • Validation result {valid: boolean, errors: Object}
Type
Object

validate() → {Object}

Validate the model

Source:
Returns:
  • Validation result {valid: boolean, errors: Object}
Type
Object

(static) fromJSON(data)

Create a headquarter-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

HeadquarterWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

Create a headquarter-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

HeadquarterWithoutRequiredConstraint - New model instance

HeadquarterWithoutRequiredConstraintHeadquarterWithoutRequiredConstraint(data)

headquarter-without-required-constraint model class

Constructor

new HeadquarterWithoutRequiredConstraint(data)

Create a new headquarter-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

HeadquarterWithoutRequiredConstraint
HeadquarterWithoutRequiredConstraint

Members

address :string

Type:
  • string
Source:

address :string

Type:
  • string
Source:

city :string

Type:
  • string
Source:

city :string

Type:
  • string
Source:

company :any

JSON dictionary representing the company instance or FK when creating / updating / not populated

Type:
  • any
Source:

company :any

JSON dictionary representing the company instance or FK when creating / updating / not populated

Type:
  • any
Source:

country :string

Type:
  • string
Source:

country :string

Type:
  • string
Source:

createdAt :number

Type:
  • number
Source:

createdAt :number

Type:
  • number
Source:

createdBy :any

The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated

Type:
  • any
Source:

createdBy :any

The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated

Type:
  • any
Source:

description :string

Headquarter notes

Type:
  • string
Source:

description :string

Headquarter notes

Type:
  • string
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

isLegal :boolean

Type:
  • boolean
Source:

isLegal :boolean

Type:
  • boolean
Source:

phone :string

Headquarter office number

Type:
  • string
Source:

phone :string

Headquarter office number

Type:
  • string
Source:

postalCode :string

Type:
  • string
Source:

postalCode :string

Type:
  • string
Source:

shipping :boolean

Type:
  • boolean
Source:

shipping :boolean

Type:
  • boolean
Source:

state :string

Type:
  • string
Source:

state :string

Type:
  • string
Source:

updatedAt :number

Type:
  • number
Source:

updatedAt :number

Type:
  • number
Source:

Methods

toJSON() → {Object}

Convert the model to a plain object

Source:
Returns:
  • Plain object representation
Type
Object

toJSON() → {Object}

Convert the model to a plain object

Source:
Returns:
  • Plain object representation
Type
Object

validate() → {Object}

Validate the model

Source:
Returns:
  • Validation result {valid: boolean, errors: Object}
Type
Object

validate() → {Object}

Validate the model

Source:
Returns:
  • Validation result {valid: boolean, errors: Object}
Type
Object

(static) fromJSON(data)

Create a headquarter-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

HeadquarterWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

Create a headquarter-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

HeadquarterWithoutRequiredConstraint - New model instance