import { BaseMetadata } from '@/types/api/api-general';
import { BaseArea } from '@/types/api/master-data/area';

export type BaseLocation = {
  id: number;
  name: string;
  address: string;
  area: BaseArea;
};

export type Location = BaseMetadata & BaseLocation;

export type CreateLocationPayload = {
  name: string;
  address: string;
  area_id: number;
};

export type UpdateLocationPayload = CreateLocationPayload;
