Class: PersoncompanyroleWithoutRequiredConstraint

PersoncompanyroleWithoutRequiredConstraint(data)

personcompanyrole-without-required-constraint model class

Constructor

new PersoncompanyroleWithoutRequiredConstraint(data)

Create a new personcompanyrole-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

PersoncompanyroleWithoutRequiredConstraint
PersoncompanyroleWithoutRequiredConstraint

Members

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:

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:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

isActive :boolean

Whether this role assignment is currently active

Type:
  • boolean
Source:

isActive :boolean

Whether this role assignment is currently active

Type:
  • boolean
Source:

isPrimary :boolean

Whether this is the primary role for this person in this company

Type:
  • boolean
Source:

isPrimary :boolean

Whether this is the primary role for this person in this company

Type:
  • boolean
Source:

person :any

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

Type:
  • any
Source:

person :any

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

Type:
  • any
Source:

role :any

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

Type:
  • any
Source:

role :any

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

Type:
  • any
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 personcompanyrole-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

PersoncompanyroleWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

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

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

PersoncompanyroleWithoutRequiredConstraint - New model instance

PersoncompanyroleWithoutRequiredConstraintPersoncompanyroleWithoutRequiredConstraint(data)

personcompanyrole-without-required-constraint model class

Constructor

new PersoncompanyroleWithoutRequiredConstraint(data)

Create a new personcompanyrole-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

PersoncompanyroleWithoutRequiredConstraint
PersoncompanyroleWithoutRequiredConstraint

Members

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:

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:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

isActive :boolean

Whether this role assignment is currently active

Type:
  • boolean
Source:

isActive :boolean

Whether this role assignment is currently active

Type:
  • boolean
Source:

isPrimary :boolean

Whether this is the primary role for this person in this company

Type:
  • boolean
Source:

isPrimary :boolean

Whether this is the primary role for this person in this company

Type:
  • boolean
Source:

person :any

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

Type:
  • any
Source:

person :any

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

Type:
  • any
Source:

role :any

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

Type:
  • any
Source:

role :any

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

Type:
  • any
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 personcompanyrole-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

PersoncompanyroleWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

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

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

PersoncompanyroleWithoutRequiredConstraint - New model instance