change providerApiSecretMd5 column to providerApiSecret for LlmModelUsageRecord table

This commit is contained in:
geekgeekrun
2025-04-22 13:54:54 +08:00
parent 3d148e8e01
commit bbd670b674
2 changed files with 5 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import { requireTypeorm } from "../utils/module-loader";
const { Entity, PrimaryGeneratedColumn, Column, Index } = requireTypeorm()
@Entity()
@Index(["providerCompleteApiUrl", "model", "providerApiSecretMd5"])
@Index(["providerCompleteApiUrl", "model", "providerApiSecret"])
export class LlmModelUsageRecord {
@PrimaryGeneratedColumn()
id: number;
@@ -13,8 +13,10 @@ export class LlmModelUsageRecord {
@Column()
model: string
@Column()
providerApiSecretMd5: string
@Column({
nullable: true
})
providerApiSecret: string
@Column({
nullable: true