- 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>
44 lines
1.5 KiB
Dart
44 lines
1.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'user_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$UserImpl _$$UserImplFromJson(Map<String, dynamic> json) => _$UserImpl(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
name: json['name'] as String,
|
|
email: json['email'] as String?,
|
|
phone: json['phone'] as String?,
|
|
username: json['username'] as String? ?? '',
|
|
role: $enumDecodeNullable(_$UserRoleEnumMap, json['role']) ??
|
|
UserRole.staff,
|
|
isActive: json['isActive'] as bool? ?? true,
|
|
createdAt: json['createdAt'] == null
|
|
? null
|
|
: DateTime.parse(json['createdAt'] as String),
|
|
updatedAt: json['updatedAt'] == null
|
|
? null
|
|
: DateTime.parse(json['updatedAt'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$$UserImplToJson(_$UserImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
'email': instance.email,
|
|
'phone': instance.phone,
|
|
'username': instance.username,
|
|
'role': _$UserRoleEnumMap[instance.role]!,
|
|
'isActive': instance.isActive,
|
|
'createdAt': instance.createdAt?.toIso8601String(),
|
|
'updatedAt': instance.updatedAt?.toIso8601String(),
|
|
};
|
|
|
|
const _$UserRoleEnumMap = {
|
|
UserRole.admin: 'admin',
|
|
UserRole.manager: 'manager',
|
|
UserRole.staff: 'staff',
|
|
};
|