mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ♻️ Refactor User federation code
This commit is contained in:
parent
d638610361
commit
9ff9b90f6b
9 changed files with 152 additions and 180 deletions
|
|
@ -556,7 +556,7 @@ export const Users = pgTable(
|
|||
id: id(),
|
||||
uri: uri(),
|
||||
username: text("username").notNull(),
|
||||
displayName: text("display_name").notNull(),
|
||||
displayName: text("display_name"),
|
||||
password: text("password"),
|
||||
email: text("email"),
|
||||
note: text("note").default("").notNull(),
|
||||
|
|
@ -578,7 +578,7 @@ export const Users = pgTable(
|
|||
inbox: string;
|
||||
outbox: string;
|
||||
}> | null>(),
|
||||
source: jsonb("source").notNull().$type<z.infer<typeof Source>>(),
|
||||
source: jsonb("source").$type<z.infer<typeof Source>>(),
|
||||
avatarId: uuid("avatarId").references(() => Medias.id, {
|
||||
onDelete: "set null",
|
||||
onUpdate: "cascade",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue