최종프로젝트_친절한이웃

테이블 (8)

Admin (Untitled2)

  • adminId (Key) — INT — 기본 키 — NOT NULL
  • userId (Key3) — INT — 외래 키 → User.userId — NOT NULL

Neighbor (Untitled4)

  • neighborId (Key2) — INT — 기본 키 — NOT NULL
  • userId (Key) — INT — 외래 키 → User.userId — NOT NULL

Rating (Untitled8)

  • ratingId (Key) — INT — 기본 키 — NOT NULL
  • transactionId (Key2) — INT — 외래 키 → Transaction.transactionId — NOT NULL
  • requestId (Key22) — INT — 외래 키 → Transaction.requestId — NOT NULL
  • seekerId (Key222) — INT — 외래 키 → Transaction.seekerId — NOT NULL
  • rating (Field) — INT
  • comment (Field2) — STRING

Seeker (Untitled3)

  • seekerId (Key2) — INT — 기본 키 — NOT NULL
  • userId (Key) — INT — 외래 키 → User.userId — NOT NULL

ServiceOffer (Untitled6)

  • offerId (Key) — INT — 기본 키 — NOT NULL
  • requestId (Key2) — INT — 외래 키 → ServiceRequest.requestId — NOT NULL
  • seekerId (Key22) — INT — 외래 키 → ServiceRequest.seekerId — NOT NULL

ServiceRequest (Untitled5)

  • requestId (Key) — INT — 기본 키 — NOT NULL
  • seekerId (Key2) — INT — 외래 키 → Seeker.seekerId — NOT NULL
  • serviceType (Field) — VARCHAR
  • description (Field2) — STRING
  • price (Field3) — INT
  • status (Field4) — VARCHAR

Transaction (Untitled7)

  • transactionId (Key) — INT — 기본 키 — NOT NULL
  • requestId (Key2) — INT — 외래 키 → ServiceRequest.requestId — NOT NULL
  • seekerId (Key22) — INT — 외래 키 → ServiceRequest.seekerId — NOT NULL
  • amount (Field) — INT
  • paymentMethod (Field2) — VARCHAR

User (Untitled)

  • userId (Key) — INT — 기본 키 — NOT NULL
  • nickname (Field) — VARCHAR
  • password (Field2) — VARCHAR
  • role (Field3) — VARCHAR