Skip to main content

Class: SecretSQL

Defined in: src/models/sql/SecretSQL.ts:34

Implementation of the Secret interface for storage in a SQL database. If MongoDB is desired, please use models.mongo.SecretMongo instead.

Extends

  • BaseEntity

Implements

Constructors

Constructor

new SecretSQL(other?): SecretSQL

Defined in: src/models/sql/SecretSQL.ts:45

Parameters

other?

Partial<SecretSQL>

Returns

SecretSQL

Overrides

BaseEntity.constructor

Properties

data

data: any

Defined in: src/models/sql/SecretSQL.ts:37

The data associated with the secret.

Implementation of

Secret.data


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

Secret.dateCreated

Inherited from

BaseEntity.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

Secret.dateModified

Inherited from

BaseEntity.dateModified


type

type: SecretType = SecretType.PASSWORD

Defined in: src/models/sql/SecretSQL.ts:40

The type of secret (e.g. fido2, openid, password, passkey, totp)

Implementation of

Secret.type


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

Secret.uid

Inherited from

BaseEntity.uid


userUid

userUid: string = ""

Defined in: src/models/sql/SecretSQL.ts:43

The unique identifier of the user account this secret is associated with.

Implementation of

Secret.userUid


version

version: number

Defined in: node_modules/@rapidrest/service-core/dist/types/models/BaseEntity.d.ts:26

The optimistic lock version.

Implementation of

Secret.version

Inherited from

BaseEntity.version