import { DbModelWithHistory } from 'src/app/model/entities/db-model';
import { Group } from 'src/app/model/entities/group';
import { Domain } from 'src/app/model/entities/domain';

export interface ShortUrl extends DbModelWithHistory {
  shortUrl: string;
  targetUrl: string;
  description: string;
  loadingScreen: boolean;
  visits: number;
  group?: Group;
  domain?: Domain;
}

export interface ShortUrlDto {
  id: number;
  targetUrl: string;
  loadingScreen: boolean;
}

export interface ShortUrlCreateInput {
  shortUrl: string;
  targetUrl: string;
  description: string;
  loadingScreen: boolean;
  groupId: number;
  domainId: number;
}

export interface ShortUrlUpdateInput {
  id: number;
  shortUrl: string;
  targetUrl: string;
  description: string;
  loadingScreen: boolean;
  groupId: number;
  domainId: number;
}
