We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a45c68 commit fbba7a0Copy full SHA for fbba7a0
1 file changed
src/lib/server/db/schema/index.ts
@@ -1 +1,18 @@
1
-export {}
+import { sqliteTable, integer, text } from "drizzle-orm/sqlite-core"
2
+import { relations } from "drizzle-orm"
3
+
4
+export const accounts = sqliteTable("accounts", {
5
+ id: integer().primaryKey(),
6
+})
7
8
+export const accountsRelations = relations(accounts, ({ many }) => ({
9
+ profiles: many(accounts),
10
+}))
11
12
+export const profiles = sqliteTable("profiles", {
13
14
+ account: integer().references(() => accounts.id),
15
+ displayName: text("display_name"),
16
+ usetname: text(),
17
+ server: text(),
18
0 commit comments