import { ColumnType, Generated, Insertable, Selectable, Updateable, } from 'kysely' export interface Database { shortener: ShortenerTable visitor: VisitorTable } export interface ShortenerTable { id: Generated link: string code: string created_at: ColumnType } export type Shortener = Selectable export type NewShortener = Insertable export type ShortenerUpdate = Updateable export interface VisitorTable { id: Generated shortener_id: number country: string country_code: string created_at: ColumnType } export type Visitor = Selectable export type NewVisitor = Insertable