chore: format

This commit is contained in:
xiaojunnuo
2026-05-31 01:41:33 +08:00
parent acd440106b
commit 4b57a0d729
557 changed files with 12530 additions and 14039 deletions
@@ -1,35 +1,34 @@
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity('sys_passkey')
@Entity("sys_passkey")
export class PasskeyEntity {
@PrimaryGeneratedColumn()
id: number;
@Column({ name: 'user_id', comment: '用户id' })
@Column({ name: "user_id", comment: "用户id" })
userId: number;
@Column({ name: 'device_name', comment: '设备名称' })
@Column({ name: "device_name", comment: "设备名称" })
deviceName: string;
@Column({ name: 'passkey_id', comment: 'passkey_id' })
@Column({ name: "passkey_id", comment: "passkey_id" })
passkeyId: string;
@Column({ name: 'public_key', comment: '公钥', type: 'text' })
@Column({ name: "public_key", comment: "公钥", type: "text" })
publicKey: string;
@Column({ name: 'counter', comment: '计数器' })
@Column({ name: "counter", comment: "计数器" })
counter: number;
@Column({ name: 'transports', comment: '传输方式', type: 'text', nullable: true })
@Column({ name: "transports", comment: "传输方式", type: "text", nullable: true })
transports: string;
@Column({ name: 'registered_at', comment: '注册时间' })
@Column({ name: "registered_at", comment: "注册时间" })
registeredAt: number;
@Column({ name: 'create_time', comment: '创建时间', default: () => 'CURRENT_TIMESTAMP' })
@Column({ name: "create_time", comment: "创建时间", default: () => "CURRENT_TIMESTAMP" })
createTime: Date;
@Column({ name: 'update_time', comment: '修改时间', default: () => 'CURRENT_TIMESTAMP' })
@Column({ name: "update_time", comment: "修改时间", default: () => "CURRENT_TIMESTAMP" })
updateTime: Date;
}