import type { Database } from "./database.types.js";
import type { RemoveNullFromObject, Tables, TablesInsert, TablesUpdate } from "./utils.js";

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

export type EventInsertInTablo = Omit<EventInsert, "tablo_id">;
export type EventAndTablo = RemoveNullFromObject<
  Database["public"]["Views"]["events_and_tablos"]["Row"],
  | "event_id"
  | "tablo_id"
  | "tablo_name"
  | "tablo_color"
  | "tablo_status"
  | "start_time"
  | "end_time"
  | "title"
  | "start_date"
>;
