Class: SecretMongo
Defined in: src/models/mongo/SecretMongo.ts:34
Implementation of the Secret interface for storage in a MongoDB database. If SQL is desired, please use
models.sql.SecretSQL instead.
Extends
BaseMongoEntity
Implements
Constructors
Constructor
new SecretMongo(
other?):SecretMongo
Defined in: src/models/mongo/SecretMongo.ts:45
Parameters
other?
Partial<SecretMongo>
Returns
SecretMongo
Overrides
BaseMongoEntity.constructor
Properties
_id?
optional_id?:any
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseMongoEntity.d.ts:11
The internal unique identifier used by MongoDB.
Inherited from
BaseMongoEntity._id
data
data:
any
Defined in: src/models/mongo/SecretMongo.ts:37
The data associated with the secret.
Implementation of
dateCreated
dateCreated:
Date
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:18
The date and time that the entity was created.
Implementation of
Inherited from
BaseMongoEntity.dateCreated
dateModified
dateModified:
Date
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:22
The date and time that the entity was last modified.
Implementation of
Inherited from
BaseMongoEntity.dateModified
type
type:
SecretType=SecretType.PASSWORD
Defined in: src/models/mongo/SecretMongo.ts:40
The type of secret (e.g. fido2, openid, password, passkey, totp)
Implementation of
uid
uid:
string
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:14
The universally unique identifier of the entity.
Implementation of
Inherited from
BaseMongoEntity.uid
userUid
userUid:
string=""
Defined in: src/models/mongo/SecretMongo.ts:43
The unique identifier of the user account this secret is associated with.
Implementation of
version
version:
number
Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26
The optimistic lock version.
Implementation of
Inherited from
BaseMongoEntity.version