tewqljdfklaqwjelj;

테이블 (6)

보증서 (Warranty)

  • warranty_id (보증서ID) — uuid — 기본 키 — NOT NULL
  • shop_id (시공점ID) — uuid — 외래 키 → 시공점.shop_id — NOT NULL
  • shop_number (시공점 번호) — text
  • shop_name (시공점 상호) — text
  • shop_business_nubmer (시공점사업자번호) — text
  • installation_amount (시공금액) — int
  • installation_date (시공날짜) — timestamp
  • installation_desc (시공내용) — text
  • installation_position (시공부위) — text
  • user_car_number (고객차량넘버) — text
  • user_name (고객명) — text
  • user_car_vin (고객차대번호) — text
  • user_car_info (고객차종) — text
  • user_car_maker (고객차량브랜드) — text
  • status (사용,삭제) — enum
  • created_at (생성일) — timestamp
  • updated_at (수정일) — timestamp
  • warranty_number (보증서고유번호) — text

브랜드 (Brand)

  • brand_id (Key) — uuid — 기본 키 — NOT NULL
  • brand_name (브랜드명) — text
  • logo_img (브랜드 로고 이미지 주소) — text
  • contact_number (연락처) — text
  • contact_fax_number (팩스연락번호) — text
  • address (주소) — text
  • name (상호명) — text
  • created_at (생성일) — timestamp
  • updated_at (수정일) — timestamp

브랜드 공지사항 (BrandNotice)

  • brand_notice_id (Key2) — uuid — 기본 키 — NOT NULL
  • brand_id (Key) — uuid — 외래 키 → 브랜드.brand_id — NOT NULL
  • title (Field) — text
  • date (Field5) — date
  • content (Field2) — text
  • created_at (Field3) — timestamp
  • updated_at (Field4) — timestamp

사용자 접속 (UsersContactTimes)

  • 사용자ID (user_id) — uuid — 외래 키 → 사용자(시공점).사용자ID — NOT NULL
  • brand_id (Key) — uuid — 외래 키 → 사용자(시공점).brand_id — NOT NULL
  • access_time (접속일) — timestamp
  • access_ip (접속IP) — text
  • created_at (생성일) — timestamp

사용자(시공점) (Users)

  • 사용자ID (user_id) — uuid — 기본 키 — NOT NULL
  • 시공점ID (shop_id) — 외래 키 → 시공점.shop_id — NOT NULL
  • brand_id (Key) — uuid — 외래 키 → 브랜드.brand_id — NOT NULL
  • 권한 (auth) — int
  • 로그인ID (login_id) — text
  • 비밀번호 (password) — text
  • 사용여부 (status) — enum
  • 생성일 (created_at) — timestamp
  • 수정일 (updated_at) — timestamp

시공점 (Shops)

  • shop_id (시공점ID) — uuid — 기본 키 — NOT NULL
  • shop_name (가게명) — text
  • shop_number (가게 번호) — text
  • email (이메일) — text
  • region (지역) — text
  • address (주소) — text
  • business_number (사업자번호) — text
  • phone (휴대폰번호) — text
  • created_at (생성일) — timestamp
  • updated_at (수정일) — timestamp
  • manager_name (매니저이름) — text