backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,8 +25,21 @@ mixin _$RentDto {
|
||||
DateTime get startedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime get endedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
int get equipmentHistoryId =>
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int? get equipmentHistoryId =>
|
||||
throw _privateConstructorUsedError; // JOIN fields from backend (계산된 필드들)
|
||||
@JsonKey(name: 'equipment_serial')
|
||||
String? get equipmentSerial => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_model')
|
||||
String? get equipmentModel => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'company_name')
|
||||
String? get companyName => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'days_remaining')
|
||||
int? get daysRemaining => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'is_active')
|
||||
bool? get isActive => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'total_days')
|
||||
int? get totalDays =>
|
||||
throw _privateConstructorUsedError; // Related entities (optional, populated in GET requests)
|
||||
EquipmentHistoryDto? get equipmentHistory =>
|
||||
throw _privateConstructorUsedError;
|
||||
@@ -49,7 +62,13 @@ abstract class $RentDtoCopyWith<$Res> {
|
||||
{int? id,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_serial') String? equipmentSerial,
|
||||
@JsonKey(name: 'equipment_model') String? equipmentModel,
|
||||
@JsonKey(name: 'company_name') String? companyName,
|
||||
@JsonKey(name: 'days_remaining') int? daysRemaining,
|
||||
@JsonKey(name: 'is_active') bool? isActive,
|
||||
@JsonKey(name: 'total_days') int? totalDays,
|
||||
EquipmentHistoryDto? equipmentHistory});
|
||||
|
||||
$EquipmentHistoryDtoCopyWith<$Res>? get equipmentHistory;
|
||||
@@ -73,7 +92,13 @@ class _$RentDtoCopyWithImpl<$Res, $Val extends RentDto>
|
||||
Object? id = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? equipmentSerial = freezed,
|
||||
Object? equipmentModel = freezed,
|
||||
Object? companyName = freezed,
|
||||
Object? daysRemaining = freezed,
|
||||
Object? isActive = freezed,
|
||||
Object? totalDays = freezed,
|
||||
Object? equipmentHistory = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
@@ -89,10 +114,34 @@ class _$RentDtoCopyWithImpl<$Res, $Val extends RentDto>
|
||||
? _value.endedAt
|
||||
: endedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
equipmentSerial: freezed == equipmentSerial
|
||||
? _value.equipmentSerial
|
||||
: equipmentSerial // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
equipmentModel: freezed == equipmentModel
|
||||
? _value.equipmentModel
|
||||
: equipmentModel // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
companyName: freezed == companyName
|
||||
? _value.companyName
|
||||
: companyName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
daysRemaining: freezed == daysRemaining
|
||||
? _value.daysRemaining
|
||||
: daysRemaining // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
isActive: freezed == isActive
|
||||
? _value.isActive
|
||||
: isActive // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
totalDays: freezed == totalDays
|
||||
? _value.totalDays
|
||||
: totalDays // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
equipmentHistory: freezed == equipmentHistory
|
||||
? _value.equipmentHistory
|
||||
: equipmentHistory // ignore: cast_nullable_to_non_nullable
|
||||
@@ -127,7 +176,13 @@ abstract class _$$RentDtoImplCopyWith<$Res> implements $RentDtoCopyWith<$Res> {
|
||||
{int? id,
|
||||
@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_serial') String? equipmentSerial,
|
||||
@JsonKey(name: 'equipment_model') String? equipmentModel,
|
||||
@JsonKey(name: 'company_name') String? companyName,
|
||||
@JsonKey(name: 'days_remaining') int? daysRemaining,
|
||||
@JsonKey(name: 'is_active') bool? isActive,
|
||||
@JsonKey(name: 'total_days') int? totalDays,
|
||||
EquipmentHistoryDto? equipmentHistory});
|
||||
|
||||
@override
|
||||
@@ -150,7 +205,13 @@ class __$$RentDtoImplCopyWithImpl<$Res>
|
||||
Object? id = freezed,
|
||||
Object? startedAt = null,
|
||||
Object? endedAt = null,
|
||||
Object? equipmentHistoryId = null,
|
||||
Object? equipmentHistoryId = freezed,
|
||||
Object? equipmentSerial = freezed,
|
||||
Object? equipmentModel = freezed,
|
||||
Object? companyName = freezed,
|
||||
Object? daysRemaining = freezed,
|
||||
Object? isActive = freezed,
|
||||
Object? totalDays = freezed,
|
||||
Object? equipmentHistory = freezed,
|
||||
}) {
|
||||
return _then(_$RentDtoImpl(
|
||||
@@ -166,10 +227,34 @@ class __$$RentDtoImplCopyWithImpl<$Res>
|
||||
? _value.endedAt
|
||||
: endedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,
|
||||
equipmentHistoryId: null == equipmentHistoryId
|
||||
equipmentHistoryId: freezed == equipmentHistoryId
|
||||
? _value.equipmentHistoryId
|
||||
: equipmentHistoryId // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
as int?,
|
||||
equipmentSerial: freezed == equipmentSerial
|
||||
? _value.equipmentSerial
|
||||
: equipmentSerial // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
equipmentModel: freezed == equipmentModel
|
||||
? _value.equipmentModel
|
||||
: equipmentModel // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
companyName: freezed == companyName
|
||||
? _value.companyName
|
||||
: companyName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
daysRemaining: freezed == daysRemaining
|
||||
? _value.daysRemaining
|
||||
: daysRemaining // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
isActive: freezed == isActive
|
||||
? _value.isActive
|
||||
: isActive // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
totalDays: freezed == totalDays
|
||||
? _value.totalDays
|
||||
: totalDays // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
equipmentHistory: freezed == equipmentHistory
|
||||
? _value.equipmentHistory
|
||||
: equipmentHistory // ignore: cast_nullable_to_non_nullable
|
||||
@@ -185,7 +270,13 @@ class _$RentDtoImpl extends _RentDto {
|
||||
{this.id,
|
||||
@JsonKey(name: 'started_at') required this.startedAt,
|
||||
@JsonKey(name: 'ended_at') required this.endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') required this.equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') this.equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_serial') this.equipmentSerial,
|
||||
@JsonKey(name: 'equipment_model') this.equipmentModel,
|
||||
@JsonKey(name: 'company_name') this.companyName,
|
||||
@JsonKey(name: 'days_remaining') this.daysRemaining,
|
||||
@JsonKey(name: 'is_active') this.isActive,
|
||||
@JsonKey(name: 'total_days') this.totalDays,
|
||||
this.equipmentHistory})
|
||||
: super._();
|
||||
|
||||
@@ -201,15 +292,34 @@ class _$RentDtoImpl extends _RentDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
final DateTime endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
final int equipmentHistoryId;
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int? equipmentHistoryId;
|
||||
// JOIN fields from backend (계산된 필드들)
|
||||
@override
|
||||
@JsonKey(name: 'equipment_serial')
|
||||
final String? equipmentSerial;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_model')
|
||||
final String? equipmentModel;
|
||||
@override
|
||||
@JsonKey(name: 'company_name')
|
||||
final String? companyName;
|
||||
@override
|
||||
@JsonKey(name: 'days_remaining')
|
||||
final int? daysRemaining;
|
||||
@override
|
||||
@JsonKey(name: 'is_active')
|
||||
final bool? isActive;
|
||||
@override
|
||||
@JsonKey(name: 'total_days')
|
||||
final int? totalDays;
|
||||
// Related entities (optional, populated in GET requests)
|
||||
@override
|
||||
final EquipmentHistoryDto? equipmentHistory;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RentDto(id: $id, startedAt: $startedAt, endedAt: $endedAt, equipmentHistoryId: $equipmentHistoryId, equipmentHistory: $equipmentHistory)';
|
||||
return 'RentDto(id: $id, startedAt: $startedAt, endedAt: $endedAt, equipmentHistoryId: $equipmentHistoryId, equipmentSerial: $equipmentSerial, equipmentModel: $equipmentModel, companyName: $companyName, daysRemaining: $daysRemaining, isActive: $isActive, totalDays: $totalDays, equipmentHistory: $equipmentHistory)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -223,14 +333,37 @@ class _$RentDtoImpl extends _RentDto {
|
||||
(identical(other.endedAt, endedAt) || other.endedAt == endedAt) &&
|
||||
(identical(other.equipmentHistoryId, equipmentHistoryId) ||
|
||||
other.equipmentHistoryId == equipmentHistoryId) &&
|
||||
(identical(other.equipmentSerial, equipmentSerial) ||
|
||||
other.equipmentSerial == equipmentSerial) &&
|
||||
(identical(other.equipmentModel, equipmentModel) ||
|
||||
other.equipmentModel == equipmentModel) &&
|
||||
(identical(other.companyName, companyName) ||
|
||||
other.companyName == companyName) &&
|
||||
(identical(other.daysRemaining, daysRemaining) ||
|
||||
other.daysRemaining == daysRemaining) &&
|
||||
(identical(other.isActive, isActive) ||
|
||||
other.isActive == isActive) &&
|
||||
(identical(other.totalDays, totalDays) ||
|
||||
other.totalDays == totalDays) &&
|
||||
(identical(other.equipmentHistory, equipmentHistory) ||
|
||||
other.equipmentHistory == equipmentHistory));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id, startedAt, endedAt,
|
||||
equipmentHistoryId, equipmentHistory);
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
id,
|
||||
startedAt,
|
||||
endedAt,
|
||||
equipmentHistoryId,
|
||||
equipmentSerial,
|
||||
equipmentModel,
|
||||
companyName,
|
||||
daysRemaining,
|
||||
isActive,
|
||||
totalDays,
|
||||
equipmentHistory);
|
||||
|
||||
/// Create a copy of RentDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -253,8 +386,13 @@ abstract class _RentDto extends RentDto {
|
||||
{final int? id,
|
||||
@JsonKey(name: 'started_at') required final DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') required final DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
required final int equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_history_id') final int? equipmentHistoryId,
|
||||
@JsonKey(name: 'equipment_serial') final String? equipmentSerial,
|
||||
@JsonKey(name: 'equipment_model') final String? equipmentModel,
|
||||
@JsonKey(name: 'company_name') final String? companyName,
|
||||
@JsonKey(name: 'days_remaining') final int? daysRemaining,
|
||||
@JsonKey(name: 'is_active') final bool? isActive,
|
||||
@JsonKey(name: 'total_days') final int? totalDays,
|
||||
final EquipmentHistoryDto? equipmentHistory}) = _$RentDtoImpl;
|
||||
const _RentDto._() : super._();
|
||||
|
||||
@@ -269,8 +407,26 @@ abstract class _RentDto extends RentDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime get endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
int get equipmentHistoryId; // Related entities (optional, populated in GET requests)
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int? get equipmentHistoryId; // JOIN fields from backend (계산된 필드들)
|
||||
@override
|
||||
@JsonKey(name: 'equipment_serial')
|
||||
String? get equipmentSerial;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_model')
|
||||
String? get equipmentModel;
|
||||
@override
|
||||
@JsonKey(name: 'company_name')
|
||||
String? get companyName;
|
||||
@override
|
||||
@JsonKey(name: 'days_remaining')
|
||||
int? get daysRemaining;
|
||||
@override
|
||||
@JsonKey(name: 'is_active')
|
||||
bool? get isActive;
|
||||
@override
|
||||
@JsonKey(name: 'total_days')
|
||||
int? get totalDays; // Related entities (optional, populated in GET requests)
|
||||
@override
|
||||
EquipmentHistoryDto? get equipmentHistory;
|
||||
|
||||
@@ -292,7 +448,7 @@ mixin _$RentRequestDto {
|
||||
DateTime get startedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime get endedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this RentRequestDto to a JSON map.
|
||||
@@ -314,7 +470,7 @@ abstract class $RentRequestDtoCopyWith<$Res> {
|
||||
$Res call(
|
||||
{@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') int equipmentHistoryId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -364,7 +520,7 @@ abstract class _$$RentRequestDtoImplCopyWith<$Res>
|
||||
$Res call(
|
||||
{@JsonKey(name: 'started_at') DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') int equipmentHistoryId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -407,7 +563,7 @@ class _$RentRequestDtoImpl implements _RentRequestDto {
|
||||
const _$RentRequestDtoImpl(
|
||||
{@JsonKey(name: 'started_at') required this.startedAt,
|
||||
@JsonKey(name: 'ended_at') required this.endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') required this.equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') required this.equipmentHistoryId});
|
||||
|
||||
factory _$RentRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$RentRequestDtoImplFromJson(json);
|
||||
@@ -419,7 +575,7 @@ class _$RentRequestDtoImpl implements _RentRequestDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
final DateTime endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int equipmentHistoryId;
|
||||
|
||||
@override
|
||||
@@ -465,7 +621,7 @@ abstract class _RentRequestDto implements RentRequestDto {
|
||||
const factory _RentRequestDto(
|
||||
{@JsonKey(name: 'started_at') required final DateTime startedAt,
|
||||
@JsonKey(name: 'ended_at') required final DateTime endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
required final int equipmentHistoryId}) = _$RentRequestDtoImpl;
|
||||
|
||||
factory _RentRequestDto.fromJson(Map<String, dynamic> json) =
|
||||
@@ -478,7 +634,7 @@ abstract class _RentRequestDto implements RentRequestDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime get endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int get equipmentHistoryId;
|
||||
|
||||
/// Create a copy of RentRequestDto
|
||||
@@ -499,7 +655,7 @@ mixin _$RentUpdateRequestDto {
|
||||
DateTime? get startedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime? get endedAt => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int? get equipmentHistoryId => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this RentUpdateRequestDto to a JSON map.
|
||||
@@ -521,7 +677,7 @@ abstract class $RentUpdateRequestDtoCopyWith<$Res> {
|
||||
$Res call(
|
||||
{@JsonKey(name: 'started_at') DateTime? startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime? endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int? equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -572,7 +728,7 @@ abstract class _$$RentUpdateRequestDtoImplCopyWith<$Res>
|
||||
$Res call(
|
||||
{@JsonKey(name: 'started_at') DateTime? startedAt,
|
||||
@JsonKey(name: 'ended_at') DateTime? endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') int? equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') int? equipmentHistoryId});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -615,7 +771,7 @@ class _$RentUpdateRequestDtoImpl implements _RentUpdateRequestDto {
|
||||
const _$RentUpdateRequestDtoImpl(
|
||||
{@JsonKey(name: 'started_at') this.startedAt,
|
||||
@JsonKey(name: 'ended_at') this.endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id') this.equipmentHistoryId});
|
||||
@JsonKey(name: 'equipment_history_id') this.equipmentHistoryId});
|
||||
|
||||
factory _$RentUpdateRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$RentUpdateRequestDtoImplFromJson(json);
|
||||
@@ -627,7 +783,7 @@ class _$RentUpdateRequestDtoImpl implements _RentUpdateRequestDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
final DateTime? endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int? equipmentHistoryId;
|
||||
|
||||
@override
|
||||
@@ -674,7 +830,7 @@ abstract class _RentUpdateRequestDto implements RentUpdateRequestDto {
|
||||
const factory _RentUpdateRequestDto(
|
||||
{@JsonKey(name: 'started_at') final DateTime? startedAt,
|
||||
@JsonKey(name: 'ended_at') final DateTime? endedAt,
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
final int? equipmentHistoryId}) = _$RentUpdateRequestDtoImpl;
|
||||
|
||||
factory _RentUpdateRequestDto.fromJson(Map<String, dynamic> json) =
|
||||
@@ -687,7 +843,7 @@ abstract class _RentUpdateRequestDto implements RentUpdateRequestDto {
|
||||
@JsonKey(name: 'ended_at')
|
||||
DateTime? get endedAt;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_history_Id')
|
||||
@JsonKey(name: 'equipment_history_id')
|
||||
int? get equipmentHistoryId;
|
||||
|
||||
/// Create a copy of RentUpdateRequestDto
|
||||
|
||||
Reference in New Issue
Block a user