ReadyCode
Tables (10)
Categories (카테고리)
- id (Key) — Long — Primary key — NOT NULL
- name (카테고리이름) — String
- createAt (생성일) — DateTime
PointTransactions (충전/사용 기록)
- id (Key) — Long — Primary key — NOT NULL
- userPointId (유저 포인트 ID) — Long — Foreign key → UserPoints.id — NOT NULL
- amount (금액) — int
- description (메모) — String
- status (결제 상태) — String
- createdAt (셍성일) — String
Reviews (리뷰)
- id (Key) — Long — Primary key — NOT NULL
- templateId (템플릿 ID) — Long — Foreign key → Templates.id — NOT NULL
- userProfileId (유저프로필 ID) — Long — Foreign key → UserProfiles.id — NOT NULL
- parentId (부모 리뷰 ID) — Long — Foreign key → Reviews.id — NOT NULL
- rating (별점 (1~5)) — Double
- content (리뷰 내용) — String
- createAt (작성일) — DateTime
- updateAt (수정일) — DateTime
TemplateDownloads (템플릿 다운로드내역)
- id (Key) — Long — Primary key — NOT NULL
- userId (다운로드한 유저) — Long — Foreign key → UserProfiles.id — NOT NULL
- templateId (다운로드된 템플릿) — Long — Foreign key → Templates.id — NOT NULL
- downloadAt (다운로드 날짜) — DateTime
- ipAddress (IP) — String
- device (디바이스 정보) — String
TemplateFiles (템플릿파일)
- id (Key) — Long — Primary key — NOT NULL
- templateId (템플릿 ID) — Long — Foreign key → Templates.id — NOT NULL
- originalFileName (원본 파일 이름) — String
- s3Key (S3 객체 키) — String
- s3Url (전체 URL) — String
- extend (MIME 타입) — Stirng
- fileSize (파일 크기) — Long
- uploadedAt (파일 생성 날짜) — DateTime
TemplatePurchases (템플릿 구매내역)
- id (Key) — Long — Primary key — NOT NULL
- buyerId (구매자) — Long — Foreign key → UserProfiles.id — NOT NULL
- templateId (구매 템플릿) — Long — Foreign key → Templates.id — NOT NULL
- price (구매가격) — int
- createdAt (구매날짜) — DateTime
Templates (템플릿)
- id (Key) — Long — Primary key — NOT NULL
- categoryId (카테고리 ID) — Long — Foreign key → Categories.id — NOT NULL
- userProfileId (작성자) — Long — Foreign key → UserProfiles.id — NOT NULL
- title (제목) — String
- description (설명) — String
- image (이미지) — String
- price (가격) — int
- createdAt (생성날짜) — DateTime
- updatedAt (수정날짜) — DateTime
UserAuths (유저 인증)
- id (Key) — Long — Primary key — NOT NULL
- userProfileId (유저프로필ID) — Long — Foreign key → UserProfiles.id — NOT NULL
- email (이메일) — String
- provider (소셜로그인) — String
- providerId (소셜로그인ID) — String
- role (권한) — String
- createdAt (생성날짜) — DateTime
- updatedAt (수정날짜) — DateTime
UserPoints (유저 보유 포인트)
- id (Key) — Long — Primary key — NOT NULL
- userProfileId (유저 ID) — Long — Foreign key → UserProfiles.id — NOT NULL
- balance (현재잔액) — Long
- updatedAt (마지막갱신) — DateTime
UserProfiles (유저 프로필)
- id (Key) — Long — Primary key — NOT NULL
- nickname (닉네임) — String
- createdReason (가입사유) — String