feat: store documents in sqlite
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { int, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
import { sql } from "drizzle-orm/sql";
|
||||
import { contentType } from "https://deno.land/std@0.216.0/media_types/content_type.ts";
|
||||
|
||||
export const userTable = sqliteTable("user", {
|
||||
id: text()
|
||||
@ -43,3 +44,12 @@ export const imageTable = sqliteTable("image", {
|
||||
blurhash: text().notNull(),
|
||||
mime: text().notNull(),
|
||||
});
|
||||
|
||||
export const documentTable = sqliteTable("document", {
|
||||
name: text().notNull().primaryKey(),
|
||||
lastModified: integer("last_modified").notNull(),
|
||||
content: text(),
|
||||
contentType: text("content_type").notNull(),
|
||||
size: integer().notNull(),
|
||||
perm: text().notNull(),
|
||||
});
|
||||
|
Reference in New Issue
Block a user