feat(card-key): add new card key sets config
This commit is contained in:
52
src/entity/card_key_sets.ts
Normal file
52
src/entity/card_key_sets.ts
Normal 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;
|
||||
}
|
||||
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user