Constructor
new HeadquarterWithoutRequiredConstraint(data)
Create a new headquarter-without-required-constraint instance
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Initial data |
Classes
Members
address :string
Type:
- string
address :string
Type:
- string
city :string
Type:
- string
city :string
Type:
- string
company :any
JSON dictionary representing the company instance or FK when creating / updating / not populated
Type:
- any
company :any
JSON dictionary representing the company instance or FK when creating / updating / not populated
Type:
- any
country :string
Type:
- string
country :string
Type:
- string
createdAt :number
Type:
- number
createdAt :number
Type:
- number
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
createdBy :any
The user who created this record JSON dictionary representing the person instance or FK when creating / updating / not populated
Type:
- any
description :string
Headquarter notes
Type:
- string
description :string
Headquarter notes
Type:
- string
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
isLegal :boolean
Type:
- boolean
isLegal :boolean
Type:
- boolean
phone :string
Headquarter office number
Type:
- string
phone :string
Headquarter office number
Type:
- string
postalCode :string
Type:
- string
postalCode :string
Type:
- string
shipping :boolean
Type:
- boolean
shipping :boolean
Type:
- boolean
state :string
Type:
- string
state :string
Type:
- string
updatedAt :number
Type:
- number
updatedAt :number
Type:
- number
Methods
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
toJSON() → {Object}
Convert the model to a plain object
Returns:
- Plain object representation
- Type
- Object
validate() → {Object}
Validate the model
Returns:
- Validation result {valid: boolean, errors: Object}
- Type
- Object
validate() → {Object}
Validate the model
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 |
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 |
Returns:
HeadquarterWithoutRequiredConstraint - New model instance