Skip to content

feat(api-server): post 생성 시 optional warehouse FK id (artist_id, group_id, brand_id) #77

@CIOI

Description

@CIOI

개요

CreatePostDto / CreateSolutionInlineDtoartist_id, group_id, brand_id(optional)를 추가하고, create_post_transaction에서 DB 컬럼에 반영합니다. JSON에서 키를 생략하면 None → NULL로 기존 이름만 넣는 클라이언트와 호환됩니다.

현황

  • public.posts / public.solutions nullable FK 컬럼은 이미 존재
  • id 미전달 시 스케줄러·대시보드에서 후속 백필 가능

작업 항목

  • DTO + create_post_transaction / CreateSolutionDto::into_active_model 매핑
  • dto_tests.inc 및 solutions DTO 단위 테스트 보강
  • cargo test --lib 통과: reports 입력 DTO에 Validate 추가, OpenAPI에 admin_update_post 등록 (main 기준 아키 테스트 복구)

관련

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend백엔드/APIrelease: phase-22차 릴리즈 (4/12) — 로그인, 유저

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions