feat(card-key): add new card key sets config

This commit is contained in:
avicenan
2026-05-28 11:35:33 +09:00
parent 0f63aeb424
commit 57e24fc18a
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,52 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from "typeorm";
@Entity("card_key_sets")
export class CardKeySet {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({
nullable: false,
unique: true,
length: 256,
})
key_set_id: string;
@Column({
nullable: true,
type: "text",
})
app_master_key: string;
@Column({
nullable: true,
type: "text",
})
read_basic_key: string;
@Column({
nullable: true,
type: "text",
})
write_update_key: string;
@Column({
nullable: true,
type: "text",
})
read_sensitive_key: string;
@Column({
nullable: true,
type: "boolean",
})
is_active: boolean;
@Column()
@CreateDateColumn()
created_at: Date;
@Column({ nullable: true })
@UpdateDateColumn()
updated_at: Date;
}

View File

@ -59,6 +59,7 @@ export * from "../entity/counter";
export * from "../entity/room_number";
export * from "../entity/medical_form";
export * from "../entity/main_disease";
export * from "../entity/card_key_sets";
export * from "../types/public";
export * from "../types/action";