mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
441c7714d9
commit
4a4f72fd66
92 changed files with 1056 additions and 1730 deletions
|
|
@ -31,9 +31,9 @@ export const db =
|
|||
? withReplicas(
|
||||
drizzle(primaryDb, { schema }),
|
||||
replicas.map((r) => drizzle(r, { schema })) as [
|
||||
// biome-ignore lint/style/useNamingConvention: <explanation>
|
||||
// biome-ignore lint/style/useNamingConvention: Required by drizzle-orm
|
||||
BunSQLDatabase<typeof schema> & { $client: SQL },
|
||||
// biome-ignore lint/style/useNamingConvention: <explanation>
|
||||
// biome-ignore lint/style/useNamingConvention: Required by drizzle-orm
|
||||
...(BunSQLDatabase<typeof schema> & { $client: SQL })[],
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import type {
|
||||
Notification as NotificationSchema,
|
||||
RolePermission,
|
||||
Source,
|
||||
Status as StatusSchema,
|
||||
} from "@versia/client/schemas";
|
||||
import type { RolePermission } from "@versia/client/schemas";
|
||||
import type { Challenge } from "altcha-lib/types";
|
||||
import { relations, sql } from "drizzle-orm";
|
||||
import {
|
||||
|
|
@ -27,22 +27,18 @@ import type {
|
|||
TextContentFormatSchema,
|
||||
} from "~/packages/sdk/schemas";
|
||||
|
||||
// biome-ignore lint/nursery/useExplicitType: Type is too complex
|
||||
const createdAt = () =>
|
||||
timestamp("created_at", { precision: 3, mode: "string" })
|
||||
.defaultNow()
|
||||
.notNull();
|
||||
|
||||
// biome-ignore lint/nursery/useExplicitType: Type is too complex
|
||||
const updatedAt = () =>
|
||||
timestamp("updated_at", { precision: 3, mode: "string" })
|
||||
.defaultNow()
|
||||
.notNull();
|
||||
|
||||
// biome-ignore lint/nursery/useExplicitType: Type is too complex
|
||||
const uri = () => text("uri").unique();
|
||||
|
||||
// biome-ignore lint/nursery/useExplicitType: Type is too complex
|
||||
const id = () => uuid("id").primaryKey().notNull();
|
||||
|
||||
export const Challenges = pgTable("Challenges", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue