import { IUser, IUserDisplay } from './UserTypes';

export interface IDomainInfo {
  id: number;
  domainName: string;
  kintoneUrl: string;
}

export interface IDomain {
  id: number;
  tenantid: string;
  name: string;
  url: string;
  kintoneuser: string,
  kintonepwd: string,
  create_time: string;
  update_time: string;
  is_active: boolean;
  owner: IUser
}

export interface IDomainSubmit extends Omit<IDomain, 'create_time' | 'update_time' | 'owner'> {
  ownerid: string;
}

export interface IDomainDisplay {
  id: number;
  tenantid: string;
  name: string;
  url: string;
  user: string;
  password?: string;
  domainActive: boolean;
}

export interface IDomainOwnerDisplay extends IDomainDisplay {
  owner: IUserDisplay
}