import 'address_model.dart';

/// 입고지 정보를 나타내는 모델 클래스
class WarehouseLocation {
  /// 입고지 고유 번호
  final int id;

  /// 입고지명
  final String name;

  /// 입고지 주소
  final Address address;

  /// 비고
  final String? remark;

  WarehouseLocation({
    required this.id,
    required this.name,
    required this.address,
    this.remark,
  });

  /// 복사본 생성 (불변성 유지)
  WarehouseLocation copyWith({
    int? id,
    String? name,
    Address? address,
    String? remark,
  }) {
    return WarehouseLocation(
      id: id ?? this.id,
      name: name ?? this.name,
      address: address ?? this.address,
      remark: remark ?? this.remark,
    );
  }
}
