Skip to content

Commit

Permalink
Revert the schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Jan 5, 2025
1 parent 3a9833b commit 0956901
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
14 changes: 0 additions & 14 deletions packages/db/drizzle/0037_sturdy_leper_queen.sql

This file was deleted.

26 changes: 0 additions & 26 deletions packages/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,32 +252,6 @@ export const bookmarkAssets = sqliteTable("bookmarkAssets", {
sourceUrl: text("sourceUrl"),
});

export const bookmarkEmbeddings = sqliteTable(
"bookmarkEmbeddings",
{
id: text("id")
.notNull()
.primaryKey()
.$defaultFn(() => createId()),
bookmarkId: text("bookmarkId")
.notNull()
.references(() => bookmarks.id, { onDelete: "cascade" }),
userId: text("userId")
.notNull()
.references(() => users.id, { onDelete: "cascade" }),
embedding: text("embedding").notNull(),
embeddingType: text("embeddingType", {
enum: ["description", "content_full", "content_chunk"],
}).notNull(),
fromOffset: integer("fromOffset"),
toOffset: integer("toOffset"),
},
(tb) => ({
bookmarkIdIdx: index("bookmarkEmbeddings_bookmarkId_idx").on(tb.bookmarkId),
userIdIdx: index("bookmarkEmbeddings_userId_idx").on(tb.userId),
}),
);

export const bookmarkTags = sqliteTable(
"bookmarkTags",
{
Expand Down

0 comments on commit 0956901

Please sign in to comment.