이거사줘
테이블 (5)
선물 이미지 테이블 (presentImage)
- 선물 이미지 아이디 (presentImage_id) — big int — 기본 키 — NOT NULL
- 선물 id (present_id) — big int — 외래 키 → 선물 테이블.선물 id — NOT NULL — cascade
- 저장소 주소 (src) — varchar — NOT NULL
- 생성일자 (createdAt) — datetime(6) — NOT NULL
- 업데이트 일자 (updatedAt) — datetime(6) — NOT NULL
- 삭제 일자 (deletedAt) — datetime(6) — NOT NULL
선물 테이블 (present)
- 선물 id (present_id) — big int — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — bit int — 외래 키 → 유저 엔티티.Key — NOT NULL
- 생일선물 이름 (name) — varchar(50) — NOT NULL
- 생일 정보 링크 (productLink) — varchar
- 펀딩 완료 여보 (complete) — boolean — NOT NULL
- 펀딩 최종 금액 (goal) — big int — NOT NULL
- 현재 쌓인 금액 (money) — bit int — NOT NULL
- 마감 일자 (deadline) — datetime(6) — NOT NULL
- 대표 사진 (referesentImage) — varchar — NOT NULL
- 짧은 한마디 (shortComment) — text — NOT NULL
- 긴 한마디 (longComment) — text — NOT NULL
- 생성일자 (createdAt) — datetime(6)
- 업데이트 일자 (updatedAt) — datetime(6) — NOT NULL
- 삭제 일자 (deletedAt) — datetime(6) — NOT NULL
유저 엔티티 (User)
- Key (user_id) — bit int — 기본 키 — NOT NULL
- sns아이디 (snsId) — varchar — NOT NULL — unique
- 이름 (name) — varchar(30) — NOT NULL
- 닉네임 (nickname) — varchar(30) — NOT NULL — unique
- 생일 (birthday) — varchar(8) — NOT NULL
- 은행 (bank) — varchar(30) — NOT NULL
- 계좌번호 (account) — varchar — NOT NULL
- 프로필 이미지 (profileImgSrc) — varchar — NOT NULL
- fcm아이디 (fcmId) — varchar — NOT NULL — unique
- 알람 수신 여부 (alarm) — boolean — NOT NULL
- 생성일자 (createdAt) — datetime(6) — NOT NULL
- 업데이트 일자 (updatedAt) — datetime(6) — NOT NULL
- 삭제일자 (deletedAt) — datetime(6) — NOT NULL
팔로우 엔티티 (follow entity)
- 팔로우 아이디 (id) — bit int — 기본 키 — NOT NULL
- 팔로워 아이디 (follower_id) — bit int — 외래 키 → 유저 엔티티.Key — NOT NULL
- 팔로잉 아이디 (following_id) — bit int — 외래 키 → 유저 엔티티.Key — NOT NULL
- 생성일자 (createdAt) — datetime(6) — NOT NULL
- 업데이트 일자 (updatedAt) — datetime(6) — NOT NULL
- 삭제 일자 (deleteAt) — datetime(6) — NOT NULL
펀딩 테이블 (funding)
- 펀딩 아이디 (funding_id) — bit int — 기본 키 — NOT NULL
- 보낸 사람 (sender_id) — bit int — 외래 키 → 유저 엔티티.Key — NOT NULL
- 받은 사람 (receiver_id) — bit int — 외래 키 → 유저 엔티티.Key — NOT NULL
- 선물 id (present_id) — big int — 외래 키 → 선물 테이블.선물 id — NOT NULL
- 비용 (cost) — int — NOT NULL
- 생일자에게 한 마디 (comment) — text — NOT NULL
- 생성일자 (created_at) — datetime(6) — NOT NULL
- 업데이트 일자 (updated_at) — datetime(6) — NOT NULL
- 삭제 일자 (deleted_at) — datetime(6) — NOT NULL