import type {ColumnType, JSONColumnType} from "kysely"; export type Generated = T extends ColumnType ? ColumnType : ColumnType; export type Int8 = ColumnType; export type Json = ColumnType; export type JsonArray = JsonValue[]; export type JsonObject = { [K in string]?: JsonValue; }; export type JsonPrimitive = boolean | number | string | null; export type JsonValue = JsonArray | JsonObject | JsonPrimitive; export type Timestamp = ColumnType; export interface Client { archived: boolean; at: Timestamp; id: number; name: string; server_deleted_at: Timestamp | null; workspace_id: number; } export interface Project { active: boolean; client_id: number | null; id: Generated; name: string; raw_json: JSONColumnType<{ color: string; id: number; name: string; }>; toggl_id: Int8; workspace_id: Int8; } export interface TimeEntry { description: string; id: Generated; project_id: Int8 | null; raw_json: JSONColumnType<{ start: string; end: string; seconds: number; }>; start: Timestamp; stop: Timestamp; toggl_id: Int8; } export interface TogglPortalSeaqlMigrations { applied_at: Int8; version: string; } export interface DB { client: Client; project: Project; time_entry: TimeEntry; toggl_portal_seaql_migrations: TogglPortalSeaqlMigrations; }