interface DataResponse {
  createdAt: Date;
  id: string;
  isActive: boolean;
  lastUpdateFullName: String;
  lastUpdatedAt: Date;
  name: string;
  level: Number;
}

interface DataRow {
  createdAt: string | null;
  id: string;
  isActive: boolean;
  lastUpdateFullName: String;
  lastUpdatedAt: string | null;
  name: string;
}

interface DetailResponse extends DataResponse {
  note: string;
  shortName: string;
  insigniaType: string;
  insigniaTypeId: string;
  level: number;
}

interface DetailRow
  extends Omit<DetailResponse, "createdAt" | "lastUpdatedAt"> {
  createdAt: string | null;
  lastUpdatedAt: string | null;
}

export type { DataResponse, DataRow, DetailResponse, DetailRow };
