From 4af1d9cab33f75a2d9956dc6a9deca9f4fb923f7 Mon Sep 17 00:00:00 2001 From: aericio <16523741+Aericio@users.noreply.github.com> Date: Tue, 28 May 2024 14:47:34 -1000 Subject: [PATCH] fix: players table name should be "id" --- dist/index.d.ts | 2 +- dist/schema.d.ts | 2 +- dist/schema.js | 2 +- dist/schema.js.map | 2 +- src/schema.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 91229bc..67b670f 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -210,7 +210,7 @@ export default function initializeDatabase({ connectionUri, }: { schema: undefined; columns: { id: import("drizzle-orm/pg-core").PgColumn<{ - name: "uuid"; + name: "id"; tableName: "players"; dataType: "string"; columnType: "PgText"; diff --git a/dist/schema.d.ts b/dist/schema.d.ts index e39a2fe..258ad4f 100644 --- a/dist/schema.d.ts +++ b/dist/schema.d.ts @@ -7,7 +7,7 @@ export declare const players: import("drizzle-orm/pg-core").PgTableWithColumns<{ schema: undefined; columns: { id: import("drizzle-orm/pg-core").PgColumn<{ - name: "uuid"; + name: "id"; tableName: "players"; dataType: "string"; columnType: "PgText"; diff --git a/dist/schema.js b/dist/schema.js index cd9f601..73c7a0c 100644 --- a/dist/schema.js +++ b/dist/schema.js @@ -6,7 +6,7 @@ import { z } from "zod"; * Players Schema */ export const players = pgTable("players", { - id: text("uuid").primaryKey().notNull(), + id: text("id").primaryKey().notNull(), username: text("username").notNull(), rank: text("rank").notNull(), equipped_avatar: json("equipped_avatar"), diff --git a/dist/schema.js.map b/dist/schema.js.map index 49ca26f..1bfe671 100644 --- a/dist/schema.js.map +++ b/dist/schema.js.map @@ -1 +1 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO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,CAAC,KAAK,CAAC,aAAa,CAAC;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/schema.ts b/src/schema.ts index dcff067..470f82c 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -20,7 +20,7 @@ import { z } from "zod"; */ export const players = pgTable("players", { - id: text("uuid").primaryKey().notNull(), + id: text("id").primaryKey().notNull(), username: text("username").notNull(), rank: text("rank").notNull(), equipped_avatar: json("equipped_avatar"),