Skip to content

Commit

Permalink
fix: players table name should be "id"
Browse files Browse the repository at this point in the history
  • Loading branch information
Aericio committed May 29, 2024
1 parent 19d764a commit 4af1d9c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion dist/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion dist/schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/schema.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 4af1d9c

Please sign in to comment.