File

src/issuer/oid4vci/entities/nonces.entity.ts

Index

Properties

Properties

expiresAt
Type : Date
Decorators :
@Column()
nonce
Type : string
Decorators :
@PrimaryColumn()
tenant
Type : TenantEntity
Decorators :
@ManyToOne(undefined, {cascade: true, onDelete: 'CASCADE'})

The tenant that owns this object.

tenantId
Type : string
Decorators :
@Column('varchar', {primary: true})
import { Column, Entity, ManyToOne, PrimaryColumn } from "typeorm";
import { TenantEntity } from "../../../auth/tenant/entitites/tenant.entity";

@Entity()
export class NonceEntity {
    @Column("varchar", { primary: true })
    tenantId!: string;
    /**
     * The tenant that owns this object.
     */
    @ManyToOne(() => TenantEntity, { cascade: true, onDelete: "CASCADE" })
    tenant!: TenantEntity;

    @PrimaryColumn()
    nonce!: string;
    @Column()
    expiresAt!: Date;
}

results matching ""

    No results matching ""