models.server.Title Class
Title for models.server.Ticket
Item Index
Methods
Methods
createdAt
()
Date
Returns:
Date:
deletedAt
()
Date
Returns:
Date:
fetchOrCreate
(
Bluebird.Promise
-
identifier
Fetch or create a model uniquely identified by the columns defined in
the identifier
Parameters:
-
identifierObjectObject of table columns
Returns:
Bluebird.Promise:
with the model instance
hasVisibility
(
-
visibility -
models
Visibility assertion helper
Parameters:
-
visibilityString -
modelsArrayArray of models.server.Visibility models
Returns:
Boolean
isSame
(
-
other
Return true if the other object is built using the same constructor and they have the same id
Parameters:
-
otherBackbone.Model
Returns:
Boolean
isSoftDeleted
()
Boolean
Returns:
Boolean:
softDelete
(
Bluebird.Promise
-
byUser
Set timestamp to deletedAt
Parameters:
-
byUsermodels.server.User | NumberThe user who deleted the model
Returns:
textToEmail
()
String
Text for email notification when this model has changed
Returns:
String:
uniqueId
()
String
Returns:
String:
updatedAt
()
Date
Returns:
Date:
Properties
type
String
The database table name
Virtual database field. Use .get("type") to access it.
unique_id
String
Unique id between tables.
Virtual database field. Use .get("unique_id") to access it.
