diff options
| author | Ahmad Mujahid <55625580+AhmadMuj@users.noreply.github.com> | 2024-04-11 15:29:51 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 14:29:51 +0300 |
| commit | be622e5594ecb21c82bb6066a82c86e0917bcc35 (patch) | |
| tree | e77973630b30bb5d51abc2ade6993c523a8413b9 /packages/db/schema.ts | |
| parent | 2806701318dff77b10a5574d4b26ef6032f6b9bc (diff) | |
| download | karakeep-be622e5594ecb21c82bb6066a82c86e0917bcc35.tar.zst | |
feature: Add PDF support (#88)
* feature: Add PDF support
* fix: PDF feature enhancements
* fix: Freeze expo-share-intent version to prevent breaking changes
* fix: set endOfLine to auto for cross-platform development
* fix: Upgrading eslint/parser and eslint-plugin to 7.6.0 to solve the linting issues
* fix: enhancing PDF feature
* fix: Allowing null in fiename for backward compatibility
* fix: update pnpm file with pnpm 9.0.0-alpha-8
* fix:(web): PDF Preview for web
Diffstat (limited to 'packages/db/schema.ts')
| -rw-r--r-- | packages/db/schema.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts index 2a83f2e5..c43b4dc8 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -157,8 +157,11 @@ export const bookmarkAssets = sqliteTable("bookmarkAssets", { .primaryKey() .$defaultFn(() => createId()) .references(() => bookmarks.id, { onDelete: "cascade" }), - assetType: text("assetType", { enum: ["image"] }).notNull(), + assetType: text("assetType", { enum: ["image", "pdf"] }).notNull(), assetId: text("assetId").notNull(), + content: text("content"), + metadata: text("metadata"), + fileName: text("fileName"), }); export const bookmarkTags = sqliteTable( |
