Point

테이블 (26)

Account

  • AccountId (Key) — string — 기본 키 — NOT NULL
  • Field

Copy Of 계정 (CopyOfMember)

  • MemberId (Key) — long — 기본 키 — NOT NULL — 변경에 영향없어야 함
  • MemberName (Field) — string — 변경가능

Copy Of 보유포인트검증 (CopyOfPointKind)

  • Id (Key) — long — 기본 키 — NOT NULL
  • MemberId (Key2) — long — 외래 키 → Copy Of 계정.MemberId — NOT NULL — 변경에 영향없어야 함
  • PointType (Field2) — enum
  • PointAmount (Field3) — int or decimal — default 0
  • RecheckDate (Field4) — datetime — scheduling
  • CreateDate (Field5) — datetime
  • UpdateDate (Field6) — datetime

Copy Of 포인트추가정보 (CopyOfPointDetail)

  • Id (Key) — long — 외래 키 → PointHistory.Id — NOT NULL
  • BrandType (Field2) — string or int
  • ShopType (Field3) — string or int

Cusotmer

  • id (Key) — int — 기본 키 — NOT NULL
  • Field

Order

  • Id (Key) — int — 기본 키 — NOT NULL
  • Field
  • CustomerId (Key3) — int — 외래 키 → Cusotmer.id — NOT NULL
  • RewardPointsHistoryEntryId (Key2) — int — 외래 키 → RewardPointHistory.Id — NOT NULL

PointDetail (Detail)

  • Id (Key) — long — 기본 키 — NOT NULL
  • MemberId (Field) — long
  • PointStatus (Field2) — enum
  • PointType (Field7) — enum
  • Points (Field3) — int or decimal
  • RegisterDate (Field4) — datetime
  • ExpireDate (Field5) — datetime
  • accumulatedId (Field6) — long — Detail Id
  • HistoryId (Key2) — long — 외래 키 → PointHistory.Id — NOT NULL
  • CreateDate (Field8) — datetime

PointHistory (History)

  • Id (Key) — long — 기본 키 — NOT NULL
  • MemberId (Key2) — long — 외래 키 → Copy Of 계정.MemberId — NOT NULL — 변경에 영향없어야 함
  • RequestSystem (Field2) — enum
  • PointStatus (Field3) — enum
  • PointType (Field4) — enum
  • Points (Field5) — int or decimal
  • Description (Field7) — string
  • RegisterDate (Field8) — datetime
  • ExpireDate (Field9) — datetime
  • PointKey (Field6) — uuid
  • CreateDate (Field10) — datetime

RequestSystem

  • Id (Key) — int — 기본 키 — NOT NULL
  • 요청시스템코드 (Field) — int
  • 요청시스템타입 (Field2) — int
  • 요청시스템키 (Field3) — string

RewardPointHistory

  • Id (Key) — int — 기본 키 — NOT NULL
  • CustomerId (Key2) — int — 외래 키 → Cusotmer.id — NOT NULL
  • StoreId (Field2) — int
  • Points (Field3) — int
  • PointsBalance (Field4) — int
  • UsedAmount (Field5) — decimal
  • Message (Field6) — string
  • CreatedOnUtc (Field7) — datetime
  • EndDateUtc (Field8) — datetime
  • ValidPoints (Field9) — int
  • UsedWithOrder (Field10) — uuid

가입축하이벤트 (Event)

  • Event (Key) — 기본 키 — NOT NULL
  • PointKey (Key2) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL

계정 (Member)

  • MemberId (Key) — long — 기본 키 — NOT NULL
  • MemberName (Field) — string

관리자지급 (Admin)

  • Admin (Key) — 기본 키 — NOT NULL
  • PointKey (Key2) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL

구매 (Untitled)

  • Key — 기본 키 — NOT NULL
  • PointKey (Key2) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL

보유포인트 (포인트Master)

  • 포인트종류코드 (Key) — int — 기본 키
  • 사용자키 (Key2) — string — 외래 키 → Account.AccountId — NOT NULL
  • 보유금액 (Field2) — decimal
  • 충전번호 (Key3) — long — 외래 키 → 충전.충전번호 — NOT NULL
  • 사용대상충전금액 (Field6) — decimal
  • 재확인일시 (Field3) — datetime
  • 등록일 (Field4) — datetime
  • 수정일 (Field5) — datetime

보유포인트정산확인 (PointKind)

  • Id (Key) — long — 기본 키 — NOT NULL
  • MemberId (Key2) — long — 외래 키 → 계정.MemberId — NOT NULL
  • PointType (Field2) — enum
  • PointAmount (Field3) — int or decimal
  • RecheckDate (Field4) — datetime
  • CreateDate (Field5) — datetime
  • UpdateDate (Field6) — datetime

요청시스템 메타정보 (PointRequestSystem)

  • RequestSystemType (Field) — string — 기본 키
  • RequestSystemCode (Field2) — string — 기본 키
  • RequestSystemSequence (Field3) — long — 기본 키
  • RequestSystemName (Field4) — string

차감 (사용)

  • 차감번호 (Key) — long — 기본 키 — NOT NULL
  • 사용자키 (Field) — string
  • 포인트종류코드 (Field2) — int
  • 차감금액 (Field3) — deciaml
  • 요청시스템코드 (Field4) — int
  • 요청시스템타입 (Field5) — int
  • 요청시스템키 (Field6) — string
  • 차감상태코드 (Field7) — int
  • 등록일시 (Field8) — datetime
  • 수정일시 (Field9) — datetime
  • 취소일시 (Field10) — datetime
  • 롤백일시 (Field11) — datetime

차감대상충전내역 (히스토리)

  • 충전번호 (Key) — long — 외래 키 → 충전.충전번호 — NOT NULL
  • 차감번호 (Key2) — long — 외래 키 → 차감.차감번호 — NOT NULL
  • 충전금액 (Field) — decimal
  • 차감금액 (Field2) — decimal
  • 활성여부 (Field3) — bool
  • 등록일시 (Field4) — datetime

충전 (적립)

  • 충전번호 (Key) — long — 기본 키 — NOT NULL
  • 사용자키 (Field) — string
  • 포인트종류코드 (Field2) — int
  • 충전금액 (Field3) — decimal
  • 잔액 (Field4) — decimal
  • 요청시스템코드 (Field5) — int
  • 요청시스템타입 (Field6) — int
  • 요청시스템키 (Field7) — string
  • 유효시작일 (Field8) — datetime
  • 유효종료일 (Field9) — datetime
  • 충전상태코드 (Field10) — int
  • 등록일시 (Field11) — datetime
  • 수정일시 (Field12) — datetime
  • 취소일시 (Field13) — datetime
  • 롤백일시 (Field14) — datetime

캠페인 (Campaign)

  • Campaign (Key) — 기본 키 — NOT NULL
  • PointKey (Key2) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL

쿠폰 (Coupon)

  • Coupon (Key) — 기본 키 — NOT NULL
  • PointKey (Key2) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL

포인트 메타정보 (PointType)

  • PointType (Key) — enum — 기본 키 — NOT NULL
  • PointName (Field) — string
  • IsUse (Field2) — bool

포인트발급키 생성기 (Generator)

  • PointKey (Key) — uuid — 기본 키 — NOT NULL
  • RequestSystemType (Field) — int
  • RequestSystemCode (Field2) — int
  • RequestSystemKey (Field3) — long
  • CreateDate (Field4) — datetime

포인트추가정보 (PointDetail)

  • Id (Key) — long — 외래 키 → 포인트히스토리.Id — NOT NULL
  • PointMessage (Field) — string
  • BrandType (Field2) — string or int
  • ShopType (Field3) — string or int

포인트히스토리 (PointHistory)

  • Id (Key) — long — 기본 키 — NOT NULL
  • MemberId (Key2) — long — 외래 키 → 계정.MemberId — NOT NULL
  • RequestSystemType (Field) — string
  • RequestSystemCode (Field2) — string
  • RequestSystemSequence (Field3) — long
  • PointType (Field4) — enum
  • Points (Field7) — int
  • PointBalance (Field5) — int
  • UsedAmount (Field15) — int
  • ValidPoint (Field16) — int
  • ValidStartDate (Field8) — datetime
  • ValidEndDate (Field9) — datetime
  • PointStatus (Field10) — enum
  • CreateDate (Field6) — datetime
  • UpdateDate (Field12) — datetime
  • CancelDate (Field13) — datetime
  • RollbackDate (Field14) — datetime
  • PointKey (Key3) — uuid — 외래 키 → 포인트발급키 생성기.PointKey — NOT NULL