yn_house

테이블 (14)

고객 (customer)

  • 아이디 (construction_customer_id) — int — 기본 키 — NOT NULL
  • 고객 구분 (customer_class) — varchar(2) — NOT NULL — 개인, 기업, 정부, 기타
  • 고객명 (customer_name) — varchar(50) — NOT NULL
  • 연락처 (customer_phonenumber) — varchar(13)
  • 성별 (customer_sex) — varchar(1) — NOT NULL
  • 생년월일 (customer_birthday) — date — NOT NULL
  • 주소 (customer_address) — varchar(100) — NOT NULL
  • VIP (vip) — boolean
  • 거리 (distance) — float
  • 총 거래 비용 (transaction_total) — int
  • 총 거래 횟수 (transaction_count) — int
  • 비고 (note) — varchar(100) — 고객의 특이사항

공사 (construction)

  • 아이디 (construction_id) — int — 기본 키 — NOT NULL
  • 고객 아이디 (customer_id) — int — 외래 키 → 공사 고객.아이디 — NOT NULL
  • 담당자 (manager_id) — int — 외래 키 → 중개 관리.담당자 아이디 — NOT NULL
  • 이름 (construction_name) — varchar(50) — NOT NULL
  • 시공지 주소 (construction_address) — varchar(100) — NOT NULL
  • 시설 유형 (construction_type) — varchar(50) — NOT NULL — 공사유형과 동일
  • 등록일자 (registration_date) — date — NOT NULL
  • 시공 예정일 (due_date) — datetime
  • 중수 (floors) — int — NOT NULL
  • 동수 (construction_counts) — int — NOT NULL
  • 폭 (construction_width) — float
  • 길이 (construction_length) — float
  • 높이 (construction_height) — float
  • 어깨 높이 (construction_shoulder_height) — float
  • 면적 (construction_area) — float
  • 진행 상태 (progress) — varchar(10) — NOT NULL
  • 정부지원여부 (government_sup_state) — boolean — NOT NULL
  • 대금지불여부 (payment_state) — bolean — NOT NULL
  • 대금지불일 (payment_date) — datetime — NOT NULL
  • x좌표 (x-coordinate) — float
  • y좌표 (y-coordinate) — float

공사 고객 (construction_customer)

  • 아이디 (construction_customer_id) — int — 외래 키 → 고객.아이디 — NOT NULL
  • 고객명 (customer_name) — varchar(50) — NOT NULL
  • 주소 (address) — varchar(50) — NOT NULL
  • 연락처 (phonenumber) — varchar(13)

공사 자재 (construction_material)

  • 공사 아이디 (construction_id) — int — 외래 키 → 공사.아이디 — NOT NULL
  • 규격 형태 (standard) — varchar(50) — 외래 키 → 자재.규격 형태
  • 상품명 (material_name) — varchar(50) — 외래 키 → 자재.상품명 — NOT NULL
  • 자재비 (material_total) — int — NOT NULL
  • 자재 단가 (material_price) — int
  • 사용 수량 (using_count) — int
  • 총액 (final_total) — int — 추후 시공비, 경비 등의 컬럼이 추가될 수 있음
  • 용도 (use) — varchar(50)

공사 참여 직원 (construction_employees)

  • 공사 아이디 (construction_id) — int — 외래 키 → 공사.아이디 — NOT NULL
  • 직원 아이디 (employee_id) — int — 외래 키 → 직원.직원 아이디 — NOT NULL

도면 이미지 (drawing)

  • 아이디 (drawing_id) — int — 기본 키 — NOT NULL
  • 공사 아이디 (construction_id) — int — 외래 키 → 공사.아이디 — NOT NULL
  • 이미지 경로 (img_route) — varchar(100)
  • 이미지 시퀀스 (img_sequence) — varchar(50)

수요 예측 결과 (demand_forecast_result)

  • 수요 아이디 (demand_id) — int — 기본 키 — NOT NULL
  • 날짜 (date) — date
  • 실제 수요량 (Field2) — 공사 테이블의 시공 예정일 컬럼의 고유 아이디 개수
  • 예측 수요량 (Field3) — 모델이 예측한 수요량

시공비 예측 결과 (demand_price_result)

  • 아이디 (construction_id) — int — 외래 키 → 공사.아이디 — NOT NULL
  • 실제 시공비 (actual_price) — int — 공사 자재 테이블 총액과 동일
  • 예측 시공비 (forecast_price) — int — 머신러닝 모델이 예측한 시공비

자재 (material)

  • 규격 형태 (standard) — varchar(50) — 기본 키
  • 상품명 (material_name) — varchar(50) — 기본 키 — NOT NULL
  • 상품 별칭 (alias) — varchar(50)
  • 대분류 (major_category) — varchar(50)
  • 중분류 (middle_category) — varchar(50)
  • 소분류 (sub_category) — varchar(50)
  • 자재 거래처 (material_account) — varchar(50)
  • 용도 (Field)
  • 비고 (Field2)

자재 가격 (Untitled)

  • 규격 형태 (standard) — varchar(50) — 외래 키 → 자재.규격 형태
  • 상품명 (material_name) — varchar(50) — 외래 키 → 자재.상품명 — NOT NULL
  • 자재 가격 (Field)
  • 날짜 (Field2)

자재 거래처 (correspondent)

  • 거래처 아이디 (correspondent_id) — int — 기본 키 — NOT NULL
  • 거래처명 (correspondent_name) — varchar(50) — NOT NULL
  • 거래 담당자 (manager) — varchar(50) — NOT NULL
  • 거래처 연락처 (phonenumber) — varchar(13)

재고 (inventory)

  • 규격 형태 (standard) — varchar(50) — 외래 키 → 자재.규격 형태
  • 상품명 (material_name2) — varchar(50) — 외래 키 → 자재.상품명 — NOT NULL
  • 거래처 아이디 (correspondent_id) — int — 외래 키 → 자재 거래처.거래처 아이디 — NOT NULL
  • 상품명 (material_name) — varchar(50)
  • 재고 수량 (material_ count) — varchar(50)
  • 예정 수급량 (expected_supply) — int
  • 예정 수급일 (expected_date) — date
  • 임계치 (threshold) — int — 재고 수량이 임계치 이하면 자동 발주 수행

중개 관리 (brokerage)

  • 담당자 아이디 (manager_id) — int — 기본 키 — NOT NULL
  • 담당자 이름 (manager_name) — varchar(50) — NOT NULL
  • 관리자 승인 여부 (manager_approval) — boolean — NOT NULL — 견적서에 오류가 있는지 확인했는가
  • 공사 승인 여부 (construction_approval) — boolean — 공사를 허용할 것인가
  • 최종 변경 일자 (change_date) — datetime
  • 최종 변경자 (change_manager) — varchar(50)
  • 최초 생성 일시 (create_date) — datetime

직원 (employee)

  • 직원 아이디 (employee_id) — int — 기본 키 — NOT NULL
  • 직원 이름 (employee_name) — varchar(50) — NOT NULL
  • 직원 전화번호 (employee_phonenumber) — varchar(13) — NOT NULL
  • 직원 급여 (employee_pay) — int — NOT NULL