get the whole friends system to work now
This commit is contained in:
parent
342fd30d62
commit
126acf52f3
34 changed files with 1101 additions and 40 deletions
|
|
@ -41,6 +41,17 @@ export const channel = sqliteTable("channel", {
|
|||
messages: text('messages', { mode: "json"}).default([]).notNull(),
|
||||
})
|
||||
|
||||
export const friendRequest = sqliteTable("friendRequest", {
|
||||
id: text('id').primaryKey(),
|
||||
fromUser: text('from_user').notNull().references(() => user.id),
|
||||
toUser: text('to_user').notNull().references(() => user.id),
|
||||
})
|
||||
|
||||
export const invite = sqliteTable("invite", {
|
||||
id: text('id').primaryKey(),
|
||||
serverId: text('server_id').notNull().references(() => server.id),
|
||||
code: text('code').notNull(),
|
||||
})
|
||||
export type Session = typeof session.$inferSelect;
|
||||
export type User = typeof user.$inferSelect;
|
||||
export type Group = typeof group.$inferSelect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue