mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-28 03:30:18 +08:00
change providerApiSecretMd5 column to providerApiSecret for LlmModelUsageRecord table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user