Constructor
new PersonWithoutRequiredConstraint(data)
Create a new person-without-required-constraint instance
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Initial data |
Classes
Members
address :string
Residential address
Type:
- string
address :string
Residential address
Type:
- string
authId :string
Type:
- string
authId :string
Type:
- string
birthDate :number
Date of birth (Unix milliseconds)
Type:
- number
birthDate :number
Date of birth (Unix milliseconds)
Type:
- number
birthPlace :string
Place of birth (city)
Type:
- string
birthPlace :string
Place of birth (city)
Type:
- string
birthProvince :string
Province of birth (2-letter code)
Type:
- string
birthProvince :string
Province of birth (2-letter code)
Type:
- string
certifications :Array.<professionalcertification>
Array of professionalcertification's or array of FK's when creating / updating / not populated
Type:
- Array.<professionalcertification>
certifications :Array.<professionalcertification>
Array of professionalcertification's or array of FK's when creating / updating / not populated
Type:
- Array.<professionalcertification>
certifiedEmail :string
Italian Certified Email Address (PEC)
Type:
- string
certifiedEmail :string
Italian Certified Email Address (PEC)
Type:
- string
city :string
City of residence
Type:
- string
city :string
City of residence
Type:
- string
companyRoles :Array.<personcompanyrole>
Array of personcompanyrole's or array of FK's when creating / updating / not populated
Type:
- Array.<personcompanyrole>
companyRoles :Array.<personcompanyrole>
Array of personcompanyrole's or array of FK's when creating / updating / not populated
Type:
- Array.<personcompanyrole>
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
email :string
Type:
- string
email :string
Type:
- string
firstName :string
Type:
- string
firstName :string
Type:
- string
gender :string
Person's gender
Type:
- string
gender :string
Person's gender
Type:
- string
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
id :integer
Note Sails special attributes: autoIncrement
Type:
- integer
lastName :string
Type:
- string
lastName :string
Type:
- string
phone :string
Type:
- string
phone :string
Type:
- string
postalCode :string
Postal code
Type:
- string
postalCode :string
Postal code
Type:
- string
province :string
Province of residence (2-letter code)
Type:
- string
province :string
Province of residence (2-letter code)
Type:
- string
taxCode :string
Italian Fiscal Code (Codice Fiscale)
Type:
- string
taxCode :string
Italian Fiscal Code (Codice Fiscale)
Type:
- string
title :string
Professional or honorific title
Type:
- string
title :string
Professional or honorific title
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 person-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
PersonWithoutRequiredConstraint - New model instance
(static) fromJSON(data)
Create a person-without-required-constraint instance from JSON data
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | JSON data |
Returns:
PersonWithoutRequiredConstraint - New model instance