MCPcopy Create free account
hub / github.com/Writesonic/GPTRouter / Provider

Class Provider

src/models/Provider.ts:20–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19@Entity()
20export class Provider extends BaseEntity {
21 @PrimaryGeneratedColumn("uuid")
22 id: string;
23
24 @Column({ unique: true, nullable: false })
25 name: string;
26
27 @CreateDateColumn({ default: () => "NOW()" })
28 createdAt: Date;
29
30 @UpdateDateColumn({ default: () => "NOW()" })
31 updatedAt: Date;
32
33 @OneToMany(() => Model, model => model.provider)
34 models?: Model[];
35
36 @OneToMany(() => ModelHealthCheck, healthCheck => healthCheck.provider)
37 healthChecks?: ModelHealthCheck[];
38
39 @OneToMany(() => ModelUsage, usage => usage.provider)
40 usages: ModelUsage[];
41
42 @OneToMany(() => ModelCost, cost => cost.provider)
43 costs?: ModelCost[];
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected