import { Tables, TablesInsert, TablesUpdate } from "@/types/database.types";
import { RemoveNullFromObject } from "@/types/removeNull";

export type Event = RemoveNullFromObject<Tables<"events">, "created_at" | "end_time">;
export type EventInsert = TablesInsert<"events">;
export type EventUpdate = TablesUpdate<"events">;

export type EventAndTablo = RemoveNullFromObject<
  Tables<"events_and_tablos">,
  | "event_id"
  | "tablo_id"
  | "tablo_name"
  | "tablo_color"
  | "tablo_status"
  | "start_time"
  | "end_time"
  | "title"
  | "start_date"
>;
