export enum IdType {
  ID_CARD = '身份证',
  HONG_KONG_MACAO_PASS = '港澳通行证',
  TAIWAN_PASS = '台湾通行证',
  PASSPORT = '护照',
  OTHER = '其他证件'
}

export interface Passenger {
  id: number;
  userId: number;
  name: string;
  idType: IdType;
  idNumber: string;
  phone: string;
  isDefault: boolean;
  createdAt: Date;
  updatedAt: Date;
  createdBy?: number;
  updatedBy?: number;
}

export interface PassengerCreateInput {
  userId: number;
  name: string;
  idType: IdType;
  idNumber: string;
  phone: string;
  isDefault?: boolean;
}

export interface PassengerUpdateInput {
  name?: string;
  idType?: IdType;
  idNumber?: string;
  phone?: string;
  isDefault?: boolean;
}

export interface PassengerListParams {
  page?: number;
  pageSize?: number;
  keyword?: string;
  userId?: number;
}

export interface PassengerListResponse {
  data: Passenger[];
  total: number;
  page: number;
  pageSize: number;
}