Repository navigation
[feat]: 기자재 모델 등록 API 구현 및 대여 정책 카테고리 이동 - #31
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
POST /api/admin/equipment-models, 조교 권한)label_required에 따라 접두사 필수/금지 검사EQUIPMENTMODEL400_2EQUIPMENTMODEL400_3EQUIPMENTMODEL409_1(삭제된 모델 포함)CATEGORY404_1, 없는 접두사 → 404LABELPREFIX404_1EQUIPMENTMODEL201_1, 응답{ modelId }Category에label_required,regular_rental_enabled,loan_period_type,loan_duration_days,pickup_photo_required,pledge_required추가EquipmentModel에서application_policy,loan_period_type,loan_duration_days,pledge_required제거EquipmentModel컬럼 수정 (프론트 화면 기준)disposal_date추가,components필수,prefix_idNULL 허용(기타 카테고리)EquipmentModelStatus에서DISCONTINUED제거EquipmentItem엔티티 및EquipmentItemStatusenum 추가 (기기 등록 API용, 이번 PR에서는 엔티티만)@JdbcTypeCode(SqlTypes.VARCHAR)적용 (Hibernate 6의 MySQL ENUM 타입 생성 방지)운영은
ddl-auto: validate라 아래 SQL을 먼저 실행하지 않으면 서버가 기동되지 않습니다.실행 전 RDS의
category,equipment_model에 기존 데이터가 있는지 확인 부탁드립니다.실행 순서대로 정리했습니다. 0단계 결과에 CHECK 제약이나 기존 데이터가 있으면 실행 전에 공유 부탁드립니다.
(CHECK 제약이 걸린 컬럼은 DROP이 실패하고,
equipment_model에 행이 있으면disposal_date NOT NULL추가가 실패할 수 있습니다.)enum 컬럼에는 CHECK 제약을 두지 않았습니다. enum 값이 바뀔 때마다 DB도 같이 고쳐야 하는 부담을 피하기 위함입니다.
테스트 (로컬)
L) → DB에category_id,prefix_id정상 저장공유 사항