File

src/issuer/lifecycle/status/entities/status-mapping.entity.ts

Index

Properties

Properties

credentialConfigurationId
Type : string
Decorators :
@Column({type: 'varchar', primary: true})
index
Type : number
Decorators :
@Column({type: 'int', primary: true})
list
Type : string
Decorators :
@Column({type: 'varchar'})

The full URI of the status list (for backward compatibility and quick lookups).

sessionId
Type : string
Decorators :
@Column({type: 'varchar', primary: true})
statusList
Type : StatusListEntity
Decorators :
@ManyToOne(undefined, {onDelete: 'CASCADE'})
@JoinColumn(['undefined', 'undefined'])

The status list entity.

statusListId
Type : string
Decorators :
@Column({type: 'varchar', primary: true})

The ID of the status list this mapping belongs to.

tenant
Type : TenantEntity
Decorators :
@ManyToOne(undefined, {cascade: true, onDelete: 'CASCADE'})

The tenant that owns this object.

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

@Entity()
export class StatusMapping {
    @Column({ type: "varchar", primary: true })
    tenantId!: string;

    /**
     * The tenant that owns this object.
     */
    @ManyToOne(() => TenantEntity, { cascade: true, onDelete: "CASCADE" })
    tenant!: TenantEntity;

    @Column({ type: "varchar", primary: true })
    sessionId!: string;

    /**
     * The ID of the status list this mapping belongs to.
     */
    @Column({ type: "varchar", primary: true })
    statusListId!: string;

    /**
     * The status list entity.
     */
    @ManyToOne(() => StatusListEntity, { onDelete: "CASCADE" })
    @JoinColumn([
        { name: "statusListId", referencedColumnName: "id" },
        { name: "tenantId", referencedColumnName: "tenantId" },
    ])
    statusList!: StatusListEntity;

    /**
     * The full URI of the status list (for backward compatibility and quick lookups).
     */
    @Column({ type: "varchar" })
    list!: string;

    @Column({ type: "int", primary: true })
    index!: number;

    @Column({ type: "varchar", primary: true })
    credentialConfigurationId!: string;
}

results matching ""

    No results matching ""