- 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>
15 lines
301 B
JavaScript
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' },
|
|
},
|
|
};
|