fromis_9/backend/src/schemas/member.js
caadiq f483f2cf53 refactor(backend): 트랜잭션 헬퍼, JSON 스키마 추가 및 스키마 파일 분리
- src/utils/transaction.js: withTransaction 헬퍼 함수 추가
- src/schemas/: 도메인별 스키마 파일 분리 (common, album, schedule, admin, member, auth)
- 라우트에 JSON Schema 검증 및 Swagger 문서화 적용
- 트랜잭션 패턴을 withTransaction 헬퍼로 추상화

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 14:58:07 +09:00

15 lines
301 B
JavaScript

/**
* 멤버 스키마
*/
export const memberResponse = {
type: 'object',
properties: {
id: { type: 'integer' },
name: { type: 'string' },
name_en: { type: 'string' },
birth_date: { type: 'string' },
position: { type: 'string' },
is_former: { type: 'boolean' },
},
};