static/jsvm/interfaces/core.baseCollection.html
experiment eventually replacing the rules *string with a struct?
isNewlastSavedPKmarkAsNewmarkAsNotNewpkpostScan
createRule?createddeleteRule?fieldsidindexeslistRule?namerawOptionssystemtypeupdateRule?updatedviewRule?
IsNew indicates what type of db query (insert or update) should be used with the model instance.
LastSavedPK returns the last saved primary key of the model.
Its value is updated to the latest PK value after MarkAsNotNew() or PostScan() calls.
MarkAsNew clears the pk field and marks the current model as "new" (aka. forces m.IsNew() to be true).
MarkAsNew set the pk field to the Id value and marks the current model as NOT "new" (aka. forces m.IsNew() to be false).
PostScan implements the [dbx.PostScanner] interface.
It is usually executed right after the model is populated with the db row values.
Optional createRulecreateRule?: string
Optional deleteRuledeleteRule?: string
fields: core.FieldsList
id: string
Id is the primary key of the model. It is usually autogenerated by the parent model implementation.
indexes: JSONArray<string>
Optional listRulelistRule?: string
name: string
rawOptions: JSONRaw
RawOptions represents the raw serialized collection option loaded from the DB. NB! This field shouldn't be modified manually. It is automatically updated with the collection type specific option before save.
system: boolean
System prevents the collection rename, deletion and rules change. It is used primarily for internal purposes for collections like "_superusers", "_externalAuths", etc.
type: string
Optional updateRuleupdateRule?: string
Optional viewRuleviewRule?: string
OSLightDark
Generated using TypeDoc