Class: FileWithoutRequiredConstraint

FileWithoutRequiredConstraint(data)

file-without-required-constraint model class

Constructor

new FileWithoutRequiredConstraint(data)

Create a new file-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

FileWithoutRequiredConstraint
FileWithoutRequiredConstraint

Members

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:

documentSubmission :any

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

Type:
  • any
Source:

documentSubmission :any

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

Type:
  • any
Source:

fileSize :number

Type:
  • number
Source:

fileSize :number

Type:
  • number
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

mimeType :string

The MIME type of the file (e.g., "application/pdf", "image/jpeg")

Type:
  • string
Source:

mimeType :string

The MIME type of the file (e.g., "application/pdf", "image/jpeg")

Type:
  • string
Source:

name :string

Type:
  • string
Source:

name :string

Type:
  • string
Source:

path :string

Type:
  • string
Source:

path :string

Type:
  • string
Source:

updatedAt :number

Type:
  • number
Source:

updatedAt :number

Type:
  • number
Source:

version :string

Type:
  • string
Source:

version :string

Type:
  • string
Source:

year :number

Type:
  • number
Source:

year :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 file-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

FileWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

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

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

FileWithoutRequiredConstraint - New model instance

FileWithoutRequiredConstraintFileWithoutRequiredConstraint(data)

file-without-required-constraint model class

Constructor

new FileWithoutRequiredConstraint(data)

Create a new file-without-required-constraint instance

Parameters:
Name Type Description
data Object

Initial data

Source:

Classes

FileWithoutRequiredConstraint
FileWithoutRequiredConstraint

Members

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:

documentSubmission :any

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

Type:
  • any
Source:

documentSubmission :any

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

Type:
  • any
Source:

fileSize :number

Type:
  • number
Source:

fileSize :number

Type:
  • number
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

id :integer

Note Sails special attributes: autoIncrement

Type:
  • integer
Source:

mimeType :string

The MIME type of the file (e.g., "application/pdf", "image/jpeg")

Type:
  • string
Source:

mimeType :string

The MIME type of the file (e.g., "application/pdf", "image/jpeg")

Type:
  • string
Source:

name :string

Type:
  • string
Source:

name :string

Type:
  • string
Source:

path :string

Type:
  • string
Source:

path :string

Type:
  • string
Source:

updatedAt :number

Type:
  • number
Source:

updatedAt :number

Type:
  • number
Source:

version :string

Type:
  • string
Source:

version :string

Type:
  • string
Source:

year :number

Type:
  • number
Source:

year :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 file-without-required-constraint instance from JSON data

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

FileWithoutRequiredConstraint - New model instance

(static) fromJSON(data)

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

Parameters:
Name Type Description
data Object

JSON data

Source:
Returns:

FileWithoutRequiredConstraint - New model instance