CON-SAFE_ERD
Tables (18)
Construction (공사 현장)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 현장 이름 (Construction_Name) — Text(50) — NOT NULL
- 현장 주소 (Construction_Address) — Text(250)
- 현장 상세 주소 (Construction_Detail_Address) — Text(250)
- 시작 날짜 (Start_At) — Date — NOT NULL
- 종료 날짜 (End_At) — Date
- 고객사 (Client) — Text(250)
- 계약금 (Order_Price) — Integer
- 관리소장 이름 (Construction_Rep) — Text(50) — NOT NULL
- 관리소장 연락처 (Construction_Rep_Phone) — Phone Nubmer(20)
- 관리소장 이메일 (Construction_Rep_Email) — Email(250) — NOT NULL
- Field11
Employee (직원)
- 직원 ID (Id) — Long Integer — Primary key — NOT NULL
- 팀 ID (Team_Id) — Lobng Integer — Foreign key → Team.팀 ID
- 직급 ID (Job) — Long Integer — Foreign key → Job.ID — NOT NULL
- 팀장인지 여부 (Is_TeamLeader) — Boolean
- 한국 이름 (Ko_Name) — Text(50) — NOT NULL
- 거주 지역 (Region) — Text(250)
- 얼굴 사진 (Face_Image) — Binary Data
- 연락처 (Phone_Number) — Phone Number(20)
- 이메일 (Email) — Email(250)
- 활성화 여부 (Is_Active) — Boolean — 퇴사/휴직일 경우 FLASE
InspectionAttempt (점검 결과에 첨부된 이미지파일)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 어떤 점검 결과인가 (InspectionResult_Id) — Long Integer — Foreign key → InspectionResult.ID — NOT NULL
- 어떤 점검 항목인가 (InspectionItem_Id) — Long Integer — Foreign key → InspectionItem.ID
- 파일명 (FileName) — Text(250)
- 업로드 날 (Create_At) — Date — NOT NULL
- 파일의 바이너리 데이터 (Content) — Binary Data — NOT NULL
InspectionHistory (점검 기록)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 점검 종류 (InspectionType_Id) — Long Integer — Foreign key → InspectionType.ID — NOT NULL
- 공사현장 (Construction_Id) — Long Integer — Foreign key → Construction.ID — NOT NULL
- 점검자 (Inspector_Id) — Long Integer — Foreign key → Employee.직원 ID — NOT NULL
- 이전 점검 기록(재점검) (Before_InspectionHistory) — Long Integer — Foreign key → InspectionHistory.ID — NOT NULL
- 당시 점검 종류 명 (InspectionType_Label) — Text(50)
- 점검 시기 (Create_At) — Date — NOT NULL
- 메모 (Memo)
InspectionItem (점검 항목)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 상위 소분류 (MinorCategory_Id) — Long Integer — Foreign key → MinorCategory.ID — NOT NULL
- 점검 항목 내용 (Label) — Text(250) — NOT NULL
- 표시 순서 (Display_Order) — Integer
InspectionResult (각 점검 항목의 점검 결과)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 점검 기록 (InspectionHistory_Id) — Long Integer — Foreign key → InspectionHistory.ID — NOT NULL
- 점검 항목 (InspectionItem_Id) — Long Integer — Foreign key → InspectionItem.ID — NOT NULL
- 결과 (Result) — Integer — Foreign key → InspectionResultStatic.ID — NOT NULL
- 대분류 명 (MajorCategory_Label) — Text(50)
- 소분류 명 (MinorCategory_Label) — Text(250)
- 점검 항목 내용 (InspectionItem_Label) — Text(250)
- 비고 (Remark) — Text(250)
InspectionResultStatic (점검 결과 Static Entity)
- ID (Id) — Integer — Primary key — NOT NULL
- 결과 한글 표기 (Label) — Text(50) — NOT NULL
- 표시 순서 (Order) — Integer — NOT NULL
- 활성화 여부 (Is_Active) — Boolean — NOT NULL
InspectionType (점검 종류)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 정검 종류 이름 (Label) — Text(50) — NOT NULL
- 활성화 여부 (Is_Active) — Boolean — 수정 등의 이유로 점검 종류에 대한 접근 차단
Job (직급 Static Entity)
- ID (Id) — Integer — Primary key — NOT NULL
- 직급 명 (Label) — Text(50) — NOT NULL
- 표시 순서 (Order) — Integer — NOT NULL
- 활성화 여부 (IsActive) — Boolean — NOT NULL
MajorCategory (대분류)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 상위 점검 종류 (InspectionType_Id) — Long Integer — Foreign key → InspectionType.ID — NOT NULL
- 대분류 명 (Label) — Text(250) — NOT NULL
- 표시 순서 (Display_Order) — Integer
MinorCategory (소분류)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 상위 대분류 (MajorCategory_Id) — Long Integer — Foreign key → MajorCategory.ID — NOT NULL
- 소분류 명 (Label) — Text(250) — NOT NULL
- 표시 순서 (Display_Order) — Integer
Reinspection (재 점검 지시)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 재 점검 이유 (Reason) — Text(250) — NOT NULL
- 재 점검 대상 점검 기록 (InspectionHistory_Id) — Long Integer — Foreign key → InspectionHistory.ID — NOT NULL
- 재 점검 지시 시기 (Create_At) — Date Time
- 재 점검 마감 시기 (Dead_Line) — Date Time — NOT NULL
- 재 점검 지시로 생성된 스케쥴 (Field)
- 재 점검 지시로 생성된 스케쥴 (Relation_Schedule_Id) — Long Integer — Foreign key → Schedule.ID
Schedule (스케쥴)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 시작 시기 (Start_Time) — Date Time — NOT NULL
- 마감 시기 (End_Time) — Date Time
- 스케쥴 이름 (Schedule_Name) — Text(50) — NOT NULL
- 스케쥴의 현 상태 (Status_Id) — Integer — Foreign key → Status.ID — NOT NULL
- 스케쥴의 종류 (TaskType_Id) — Integer — Foreign key → TaskType.ID — NOT NULL
- 스케쥴 주인(담당자) (Owner) — Long Integer — Foreign key → Employee.직원 ID — NOT NULL
- 스케쥴 부여자(책임자) (Task_Giver) — Long Integer — Foreign key → Employee.직원 ID — NOT NULL
- 점검 종류 (InspectionType_Id) — Long Integer — Foreign key → InspectionType.ID
- 점검 결과 (InspectionHistory_Result) — Long Integer — Foreign key → InspectionHistory.ID
ScheduleDetail (스케쥴 상세)
- ID (Id) — Long Integer — Primary key — NOT NULL
- 스케쥴 ID (Schedule_Id) — Long Integer — Foreign key → Schedule.ID — NOT NULL
- 설명 (Description) — Text(250)
- 상세 장소 (Detail_Location) — Text(250)
- 특이사항 (Remark) — Text(250)
Status (스케쥴 상태 Static Entity)
- ID (Id) — Integer — Primary key — NOT NULL
- 스케쥴의 상태 한글 표시 (Label) — Text(50) — NOT NULL
- 표시 순서 (Order) — Integer — NOT NULL
- 활성화 여부 (Is_Active) — Boolean — NOT NULL
TaskType (스케쥴 종류 Static Entity)
- ID (Id) — Integer — Primary key — NOT NULL
- 스케쥴의 종류 한글 표시 (Label) — Text(50) — NOT NULL
- 표시 순서 (Order) — Integer — NOT NULL
- 활성화 여부 (Is_Active) — Boolean — NOT NULL
Team (팀/부서/본부)
- 팀 ID (Id) — Long Integer — Primary key — NOT NULL
- 팀/부서/본부 명 (Team_Label) — Text(50) — NOT NULL
- 팀장 ID (TeamLeader) — Long Integer — Foreign key → Employee.직원 ID — NOT NULL
- 상위 팀/부서/본부 (Parent_Team_Id) — Long Integer — Foreign key → Team.팀 ID — NOT NULL
Weekend (getDay() 매핑용 Static Entity)
- ID (Id) — Integer — Primary key — NOT NULL
- 요일 한글 표기 (Label) — Text(50) — NOT NULL
- 표시 순서 (Order) — Integer — NOT NULL
- 활성화 여부 (Is_Active) — Boolean — NOT NULL