Draw
테이블 (6)
당첨내역 (DrawResult)
- id — ObjectId — 기본 키 — NOT NULL
- DrawActivityId — ObjectId — 외래 키 → 드로우활동.id — NOT NULL
- UserId — ObjectId — 외래 키 → 유저.id — NOT NULL
- usedRaffle — Long
- createdDateTime — LocalDateTime
- updatedDateTime — LocalDateTime
- isCompleted — boolean
- isDeleted — boolean
드로우활동 (DrawActivity)
- id — ObjectId — 기본 키 — NOT NULL
- goodsId — ObjectId — 외래 키 → 상품.id — NOT NULL
- drawNoticeId — ObjectId — 외래 키 → 유의사항.id — NOT NULL
- title — String
- startDateTime — LocalDateTime
- endDateTime — LocalDateTime
- totalWinners — int
- raffleUnit — Long
- raffleMax — Long
- descriptionImageUrl — String
- drawResultUrl — String
- drawResultDateTime — LocalDateTime
- createDateTime — LocalDateTime
- updateDateTime — LocalDateTime
- isCompleted — boolean
- isDisplayed — boolean
- isDeleted — boolean
드로우히스토리 (DrawHistory)
- id — ObjectId — 기본 키 — NOT NULL
- DrawActivityId — ObjectId — 외래 키 → 드로우활동.id — NOT NULL
- UserId — ObjectId — 외래 키 → 유저.id — NOT NULL
- raffle — Long
- createdDateTime — LocalDateTime
상품 (Goods)
- id — ObjectId — 기본 키 — NOT NULL
- name — String
- imageUrls — Arrays
- price — Double
- amount — Long
- createdDateTime — LocalDateTime
- updatedDateTime — LocalDateTime
- isDeleted — boolean
유의사항 (DrawNotice)
- id — ObjectId — 기본 키 — NOT NULL
- code — String
- name — String
- content — String
- createdDateTime — LocalDateTime
- updateDateTime — LocalDateTime
유저 (User)
- id — ObjectId — 기본 키 — NOT NULL
- UserName — String