색인초록과데이터베이스6주차2차과제202320614이지은

테이블 (7)

client (Untitled)

  • client_ssn (주민등록번호) — PK — 기본 키 — NOT NULL
  • name (이름)
  • address (주소)
  • phone_number (전화번호)

client_sevice (Untitled5)

  • date (Key) — PK — 기본 키 — NOT NULL
  • client_service_id (Key2) — PK — 기본 키 — NOT NULL
  • client_ssn (주민등록번호) — FK — 외래 키 → client.client_ssn — NOT NULL
  • service_id (서비스 식별자) — FK — 외래 키 → service.service_id — NOT NULL
  • Field

dependent (Untitled2)

  • dependent_ssn (주민등록번호) — 기본 키 — NOT NULL
  • name (이름)
  • age (나이)
  • client_ssn (주민등록번호2) — PK — 외래 키 → client.client_ssn — NOT NULL

service (Untitled3)

  • service_id (서비스 식별자) — PK — 기본 키 — NOT NULL
  • description (설명)
  • name (Field)
  • year (Field2)
  • month (Field3)
  • fee (Field4)
  • subject_id (Key) — 외래 키 → subject.subject_id — NOT NULL
  • provider_id (제공자 식별자) — PK — 외래 키 → service_provider.provider_id — NOT NULL
  • client_ssn (주민등록번호2) — PK — 외래 키 → client.client_ssn — NOT NULL

service_provider (Untitled4)

  • provider_id (제공자 식별자) — PK — 기본 키 — NOT NULL
  • name (이름)
  • address (주소)
  • contact_phone_nember (연락처 전화번호)

service_provision (Untitled6)

  • provision_id (Key) — PK — 기본 키 — NOT NULL
  • service_id (서비스 식별자) — PK — 외래 키 → service.service_id — NOT NULL
  • provider_id (제공자 식별자) — PK — 외래 키 → service_provider.provider_id — NOT NULL

subject (Untitled7)

  • subject_id (Key) — 기본 키 — NOT NULL
  • name (Field)
  • memo (Field2)