- CLAUDE.md 대폭 개선: 개발 가이드라인 및 프로젝트 상태 문서화 - 백엔드 API 통합: 모든 엔티티 간 Foreign Key 관계 완벽 구현 - UI 일관성 강화: shadcn_ui 컴포넌트 표준화 적용 - 데이터 모델 개선: DTO 및 모델 클래스 백엔드 스키마와 100% 일치 - 사용자 관리: 회사 연결, 중복 검사, 입력 검증 기능 추가 - 창고 관리: 우편번호 연결, 중복 검사 기능 강화 - 회사 관리: 우편번호 연결, 중복 검사 로직 구현 - 장비 관리: 불필요한 카테고리 필드 제거, 벤더-모델 관계 정리 - 우편번호 시스템: 검색 다이얼로그 Provider 버그 수정 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
73 lines
1.6 KiB
Dart
73 lines
1.6 KiB
Dart
/// 입고지 정보를 나타내는 모델 클래스 (백엔드 API 호환)
|
|
class WarehouseLocation {
|
|
/// 입고지 고유 번호
|
|
final int id;
|
|
|
|
/// 입고지명
|
|
final String name;
|
|
|
|
/// 주소 (단일 문자열)
|
|
final String? address;
|
|
|
|
/// 우편번호 (zipcodes_zipcode 필드)
|
|
final String? zipcode;
|
|
|
|
/// 담당자명
|
|
final String? managerName;
|
|
|
|
/// 담당자 연락처
|
|
final String? managerPhone;
|
|
|
|
/// 수용량
|
|
final int? capacity;
|
|
|
|
/// 비고
|
|
final String? remark;
|
|
|
|
/// 활성 상태
|
|
final bool isActive;
|
|
|
|
/// 생성일
|
|
final DateTime createdAt;
|
|
|
|
WarehouseLocation({
|
|
required this.id,
|
|
required this.name,
|
|
this.address,
|
|
this.zipcode,
|
|
this.managerName,
|
|
this.managerPhone,
|
|
this.capacity,
|
|
this.remark,
|
|
this.isActive = true,
|
|
DateTime? createdAt,
|
|
}) : createdAt = createdAt ?? DateTime.now();
|
|
|
|
/// 복사본 생성 (불변성 유지)
|
|
WarehouseLocation copyWith({
|
|
int? id,
|
|
String? name,
|
|
String? address,
|
|
String? zipcode,
|
|
String? managerName,
|
|
String? managerPhone,
|
|
int? capacity,
|
|
String? remark,
|
|
bool? isActive,
|
|
DateTime? createdAt,
|
|
}) {
|
|
return WarehouseLocation(
|
|
id: id ?? this.id,
|
|
name: name ?? this.name,
|
|
address: address ?? this.address,
|
|
zipcode: zipcode ?? this.zipcode,
|
|
managerName: managerName ?? this.managerName,
|
|
managerPhone: managerPhone ?? this.managerPhone,
|
|
capacity: capacity ?? this.capacity,
|
|
remark: remark ?? this.remark,
|
|
isActive: isActive ?? this.isActive,
|
|
createdAt: createdAt ?? this.createdAt,
|
|
);
|
|
}
|
|
}
|