feat: 新增license

This commit is contained in:
小蟑螂
2026-07-06 19:34:53 +08:00
parent 8a6cb23c07
commit ac890dcc5c
110 changed files with 10678 additions and 1368 deletions
@@ -0,0 +1,33 @@
import {
Column,
CreateDateColumn,
Entity,
PrimaryGeneratedColumn,
} from 'typeorm';
@Entity('lc_activation_log')
export class LcActivationLog {
@PrimaryGeneratedColumn({ type: 'bigint', unsigned: true })
id!: number;
@Column({ name: 'license_id', type: 'bigint', unsigned: true })
licenseId!: number;
@Column({ name: 'machine_fingerprint', length: 100 })
machineFingerprint!: string;
@Column({ name: 'installation_id', type: 'varchar', length: 64, nullable: true })
installationId!: string | null;
@Column({ type: 'varchar', length: 200, nullable: true })
hostname!: string | null;
@Column({ type: 'varchar', length: 50, nullable: true })
ip!: string | null;
@Column({ length: 20 })
action!: string;
@CreateDateColumn({ name: 'created_at' })
createdAt!: Date;
}