mms
테이블 (14)
권한 (rights)
- 권한ID (id) — serial — 기본 키 — NOT NULL
- 구분 (type) — text — NOT NULL
- 사업ID (business_id) — int — NOT NULL
- 사업 차수ID (order_id) — int — NOT NULL
- 사용자ID (user_id) — int — NOT NULL
메뉴 (menus)
- 메뉴ID (id) — serial — 기본 키 — NOT NULL
- Field
물품 (products)
- 물품ID (id) — serial — 기본 키 — NOT NULL
- 구매일자 (purchased_date) — date
- 사업ID (business_id) — int — NOT NULL
- 제품ID (item_id) — int — NOT NULL
- 판매처 (sold_company) — text
사업 (businesses)
- 사업ID (id) — serial — 기본 키 — NOT NULL
- 사업명 (name) — text — NOT NULL
- 구분 (type) — text — NOT NULL
- 차수ID (order_id) — int — NOT NULL — 현재 진행중인 차수
사업 차수 (orders)
- 차수ID (id) — serial — 기본 키 — NOT NULL
- 차수명 (name) — text — NOT NULL
- 시작일자 (started_date) — date — NOT NULL
- 종료일자 (ended_date) — date — NOT NULL
- 예산 (budget) — int
- 비고 (note) — text
- 사업ID (business_id) — int — NOT NULL
사용자 (users)
- 사용자ID (id) — serial — 기본 키 — NOT NULL
- 이름 (name) — text — NOT NULL
- 이메일 (email) — text — NOT NULL
- 비밀번호 (password) — text — NOT NULL — 단방향 암호화 + 솔팅
- 소속 (company) — text — NOT NULL
- 연락처 (phone_number) — text — NOT NULL
- 직위 (position) — text — NOT NULL
- 생성일 (created_at) — timestamp — NOT NULL
- 수정일 (updated_at) — timestamp — NOT NULL
- 상태 (status) — text — NOT NULL
- 등급 (grade) — text — NOT NULL
설치 (installations)
- 설치ID (id) — serial — 기본 키 — NOT NULL
- 설치일자 (installed_date) — date
- 장소ID (location_id) — int — NOT NULL
- 물품ID (product_id) — int — NOT NULL
알림 (notifications)
- 알림ID (id) — serial — 기본 키 — NOT NULL
- 구분 (type) — text — NOT NULL
- 내용 (content) — text — NOT NULL
- 생성일 (created_at) — timestamp — NOT NULL
- 확인일 (checked_at) — timestamp
- 확인 여부 (is_checked) — boolean — NOT NULL
- 참조ID (reference_id) — int — NOT NULL
- 사용자ID (user_id) — int — NOT NULL
이슈 (issues)
- 이슈ID (id) — serial — 기본 키 — NOT NULL
- 이슈명 (name) — text — NOT NULL
- 구분 (type) — text — NOT NULL — 장애, 기술지원, 단순지원, 문서
- 발생일 (issued_at) — timestamp — NOT NULL
- 종료일 (ended_at) — timestamp
- 요청 마감 기한 (limit_date) — date
- 접수 내용 (content) — jsonb — NOT NULL
- 등록자ID (writer_id) — int — NOT NULL — users.id
- 사업ID (business_id) — int — NOT NULL
- 장소ID (location_id) — int — NOT NULL
이슈처리 (processes)
- 이슈처리ID (id) — serial — 기본 키 — NOT NULL
- 상태 (status) — text — NOT NULL — 대기, 진행, 완료, 문제
- 구분 (type) — text — NOT NULL — 설치, 교체, 수리, 폐기
- 처리 내용 (content) — text — NOT NULL
- 처리일 (processed_at) — timestamp
- 처리자ID (processor_id) — int — NOT NULL — users.id
- 이슈ID (issue_id) — int — NOT NULL
장소 (locations)
- 장소ID (id) — serial — 기본 키 — NOT NULL
- 장소명 (name) — text — NOT NULL
- 구분 (type) — text — NOT NULL
- 주소 (address) — text — NOT NULL
- 위도 (latitude) — double — 주소로 자동 불러오기
- 경도 (longitude) — double — 주소로 자동 불러오기
- 사업ID (business_id) — int — NOT NULL
점검 (inspections)
- 점검ID (id) — serial — 기본 키 — NOT NULL
- 구분 (type) — text — NOT NULL
- 결과 (result) — jsonb — NOT NULL
- 시작일자 (started_at) — timestamp — NOT NULL
- 종료일자 (ended_at) — timestamp
점검 항목 (checklist)
- 항목ID (id) — serial — 기본 키 — NOT NULL
- 내용 (content) — text — NOT NULL
- 입력 구분 (input_type) — text — NOT NULL — text, checkbox 등
- 사업ID (business_id) — int — NOT NULL
제품 (items)
- 제품ID (id) — serial — 기본 키 — NOT NULL
- 제품명 (name) — text — NOT NULL
- 모델명 (model_name) — text — NOT NULL
- 구분 (type) — text — NOT NULL
- 금액 (price) — int
- 사양 (specification) — text
- 제조사 (manufacturer) — text — NOT NULL
- 교체 주기 (change_cycle) — text — NOT NULL — 년, 월, 일, 시간, 분, 초 ex) 3년, 10일
- 사업ID (business_id) — int — NOT NULL