apptitude(1차 수정)

테이블 (7)

Challenge (Untitled4)

  • id (Key) — num — 기본 키 — NOT NULL
  • P1id (Key2) — num — NOT NULL
  • p2id (Key3) — num — NOT NULL
  • GoalDuration (Field) — num
  • GoalTime (Field2) — num
  • RewardItem (Field3) — char
  • TimerStart (Field6) — date
  • TimerEnd (Field7) — date
  • IsInprogress (Field8) — num
  • StartTime (Field9) — date
  • EndTime (Field10) — date
  • TotalTime (Field11) — num
  • P1ResultPercentage (Field12) — num
  • p2PresultPercentage (Field13) — num

Loser (Untitled3)

  • id (Key) — num — 기본 키 — NOT NULL
  • ContractId (Key2) — num — NOT NULL
  • UserId (Key3) — num — NOT NULL

Participant (Untitled7)

  • ParticipantId (Key) — int — 기본 키 — NOT NULL
  • UserId (Field) — int
  • ContractId (Field2) — int

Reward (Untitled)

  • id (Key) — 기본 키 — NOT NULL
  • ContractId (Key4) — num — 외래 키 → User.id — NOT NULL
  • GiverId (Key2) — num — 외래 키 → User.id — NOT NULL
  • ReceiverId (Key3) — num — 외래 키 → User.id — NOT NULL
  • RewardItem (Field) — char
  • RewardStatus (Field2) — char

User (Untitled6)

  • id (Key) — num — 기본 키 — NOT NULL
  • Username (Field) — char
  • Email (Field2) — char
  • Password (Field3) — char
  • Occupation (Field4) — char

UserSession (Untitled5)

  • id (Key) — num — 기본 키 — NOT NULL
  • UserId (Key2) — num — 외래 키 → User.id — NOT NULL
  • LoginTime (Field) — date

Winner (Untitled2)

  • id (Key) — num — 기본 키 — NOT NULL
  • ContractId (Key2) — num — NOT NULL
  • UserId (Key3) — num — NOT NULL