feat: make inviteCode optional in NewSeason type for season creation
This commit is contained in:
parent
8c65ac9590
commit
78dc3f7d96
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ import { database } from "~/database/context";
|
|||
import * as schema from "~/database/schema";
|
||||
|
||||
export type Season = typeof schema.seasons.$inferSelect;
|
||||
export type NewSeason = typeof schema.seasons.$inferInsert;
|
||||
export type NewSeason = Omit<typeof schema.seasons.$inferInsert, 'inviteCode'> & {
|
||||
inviteCode?: string;
|
||||
};
|
||||
export type SeasonStatus = "pre_draft" | "draft" | "active" | "completed";
|
||||
|
||||
export interface SeasonWithSportsSeasons extends Season {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue