pricelees d3e22888ed [#28] 쿠버네티스 환경 배포 (#29)
<!-- 제목 양식 -->
<!-- [이슈번호] 작업 요약 (예시: [#10] Gitea 템플릿 생성) -->

## 📝 관련 이슈 및 PR

**PR과 관련된 이슈 번호**
- #28

##  작업 내용
<!-- 어떤 작업을 했는지 알려주세요! -->
- 프론트엔드, 백엔드 쿠버네티스 환경 배포(ArgoCD 이용)
- Helm 차트는 private repository에 업로드

## 🧪 테스트
<!-- 어떤 테스트를 생각했고 진행했는지 알려주세요! -->
- 배포 환경에서 기능 정상 동작 확인

## 📚 참고 자료 및 기타
<!-- 참고한 자료, 또는 논의할 사항이 있다면 알려주세요! -->

Reviewed-on: #29
Co-authored-by: pricelees <priceelees@gmail.com>
Co-committed-by: pricelees <priceelees@gmail.com>
2025-08-04 05:59:38 +00:00

64 lines
2.4 KiB
SQL

create table if not exists members (
member_id bigint primary key,
email varchar(255) not null,
name varchar(255) not null,
password varchar(255) not null,
role varchar(20) not null,
created_at timestamp null,
last_modified_at timestamp null
);
create table if not exists themes (
theme_id bigint primary key,
description varchar(255) not null,
name varchar(255) not null,
thumbnail varchar(255) not null,
created_at timestamp null,
last_modified_at timestamp null
);
create table if not exists times (
time_id bigint primary key,
start_at time not null,
created_at timestamp null,
last_modified_at timestamp null
);
create table if not exists reservations (
reservation_id bigint primary key,
date date not null,
member_id bigint not null,
theme_id bigint not null,
time_id bigint not null,
status varchar(30) not null,
created_at timestamp null,
last_modified_at timestamp null,
constraint fk_reservations__themeId foreign key (theme_id) references themes (theme_id),
constraint fk_reservations__memberId foreign key (member_id) references members (member_id),
constraint fk_reservations__timeId foreign key (time_id) references times (time_id)
);
create table if not exists payments (
payment_id bigint primary key,
approved_at timestamp not null,
reservation_id bigint not null,
total_amount bigint not null,
order_id varchar(255) not null,
payment_key varchar(255) not null,
created_at timestamp null,
last_modified_at timestamp null,
constraint uk_payments__reservationId unique (reservation_id),
constraint fk_payments__reservationId foreign key (reservation_id) references reservations (reservation_id)
);
create table if not exists canceled_payments (
canceled_payment_id bigint primary key,
payment_key varchar(255) not null,
cancel_reason varchar(255) not null,
cancel_amount bigint not null,
approved_at timestamp not null,
canceled_at timestamp not null,
created_at timestamp null,
last_modified_at timestamp null
);