Skip to content

Commit

Permalink
Add embed fields (#170)
Browse files Browse the repository at this point in the history
* Add embed fields

* Add new columns to JoinedEmbedEmbeddingSecret
  • Loading branch information
imsitnikov authored Aug 16, 2024
1 parent f9740d5 commit 393615b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db/models/new/embed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const EmbedModelColumn = {
EntryId: 'entryId',
DepsIds: 'depsIds',
UnsignedParams: 'unsignedParams',
PrivateParams: 'privateParams',
PublicParamsMode: 'publicParamsMode',
CreatedBy: 'createdBy',
CreatedAt: 'createdAt',
} as const;
Expand All @@ -26,6 +28,8 @@ export class EmbedModel extends Model {
[EmbedModelColumn.EntryId]!: string;
[EmbedModelColumn.DepsIds]!: string[];
[EmbedModelColumn.UnsignedParams]!: string[];
[EmbedModelColumn.PrivateParams]!: string[];
[EmbedModelColumn.PublicParamsMode]!: boolean;
[EmbedModelColumn.CreatedBy]!: string;
[EmbedModelColumn.CreatedAt]!: string;
}
2 changes: 2 additions & 0 deletions src/db/presentations/joined-embed-embedding-secret/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const selectedEmbedColumns = [
EmbedModelColumn.EntryId,
EmbedModelColumn.DepsIds,
EmbedModelColumn.UnsignedParams,
EmbedModelColumn.PrivateParams,
EmbedModelColumn.PublicParamsMode,
EmbedModelColumn.CreatedBy,
EmbedModelColumn.CreatedAt,
] as const;
Expand Down

0 comments on commit 393615b

Please sign in to comment.