import { ColumnType, Generated, Insertable, Selectable, Updateable, } from 'kysely' export type Timestamp = ColumnType export interface Database { shortener: ShortenerTable visitor: VisitorTable user: UserTable } 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 export interface UserTable { created_at: Generated email: string id: Generated password: string username: string uuid: string } export type User = Selectable export type NewUser = Insertable export type UserUpdate = Updateable