Refactor: Update README, NavBar, Drizzle schema, and environment types

This commit is contained in:
aronmal 2024-01-29 10:49:29 +01:00
parent 757d790e54
commit 6b07599a68
Signed by: aronmal
GPG key ID: 816B7707426FC612
4 changed files with 22 additions and 11 deletions

View file

@ -1,6 +1,7 @@
import type { AdapterAccount } from "@auth/core/adapters";
import { relations } from "drizzle-orm";
import {
boolean,
integer,
pgTable,
primaryKey,
@ -71,7 +72,7 @@ export const matchPlannings = pgTable("match_planning", {
roleId: varchar("role_id", { length: 20 }).notNull(),
opponentName: varchar("opponent_name", { length: 100 }).notNull(),
messageId: varchar("message_id", { length: 20 }).notNull(),
ts: timestamp("ts").notNull(),
utc_ts: timestamp("utc_ts").notNull(),
guildId: varchar("guild_id", { length: 20 })
.notNull()
.references(() => guilds.id, { onDelete: "cascade" }),
@ -107,6 +108,7 @@ export const timePlannings = pgTable("time_planning", {
}),
channelId: varchar("channel_id", { length: 20 }).notNull(),
target_interval: smallint("target_interval").notNull(),
roles: boolean("roles").notNull(),
isAvailableRoleId: varchar("is_available_role_id", { length: 20 }),
wantsToBeNotifieRoledId: varchar("wants_to_be_notified_role_id", {
length: 20,