편의점관리시스템

테이블 (7)

Category (Untitled2)

  • id (Key) — IntegerField — 기본 키 — NOT NULL
  • section_id (Key2) — IntegerField — 외래 키 → section_category.id — NOT NULL
  • choices (Field) — charField

Product (Untitled3)

  • id (Key) — IntegerField — 기본 키 — NOT NULL
  • category_id (Key2) — IntegerField — 외래 키 → Category.id — NOT NULL
  • store_id (Key3) — IntegerField — 외래 키 → Stock.id — NOT NULL
  • section_id (Key4) — IntegerField — 외래 키 → section_product.id — NOT NULL
  • id (Key22) — IntegerField — 외래 키 → Category.section_id — NOT NULL
  • name (Field) — CharField
  • price (Field2) — IntegerField
  • updated_at (Field3) — DateTimeField
  • expiration_date (Field4) — DateTimeField
  • cnt (Field5) — IntegerFIeld

Section (Untitled)

  • id (Key) — IntegerField — 기본 키 — NOT NULL
  • store_id (Key2) — IntegerField — 외래 키 → Store.id — NOT NULL
  • product_id (Key3) — IntegerField — 외래 키 → section_product.id — NOT NULL
  • category_id (Key4) — IntegerField — 외래 키 → section_category.id — NOT NULL
  • position (Field) — IntegerField

Stock (중간테이블)

  • id (Key) — IntegerField — 기본 키 — NOT NULL
  • store_id (Key2) — IntegerField — 외래 키 → Store.id — NOT NULL

Store (Untitled4)

  • id (Key) — IntegerField — 기본 키 — NOT NULL
  • location (Field) — CharField
  • manager (Field2) — CharField

section_category (중개 테이블2)

  • id (Key) — IntegerField — 기본 키 — NOT NULL

section_product (중개 테이블)

  • id (Key) — IntegerField — 기본 키 — NOT NULL