재고관리

테이블 (13)

Attribute (속성)

  • 속성 id (attributeId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 속성 이름 (nameOfAttribute) — String
  • 속성 타입 (typeOfAttribute) — enum(NUMBER, TEXT, DATE, BARCODE)

Member (팀 멤버)

  • 멤버 id (memberId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 멤버명 (nameOfMember) — String
  • 멤버 로그인 id (nickname) — String
  • 멤버 비밀번호 (password) — String
  • 프로필 사진 (imageUrlOfMember) — String
  • 팀장 여부 (owner) — Boolean

SheetOfInventoryClearance (재고조사 시트)

  • 재고조사 시트 id (sheetOfInventoryClearanceId) — Long — 기본 키 — NOT NULL
  • 멤버 id (memberId) — Long — 외래 키 → Member.멤버 id — NOT NULL
  • 재고 조사 id (inventoryClearanceId) — Long — 외래 키 → inventoryClearance.재고 조사 id — NOT NULL
  • 제목 (titleOfSheetOfInventoryClearance) — String
  • 상태 (stateOfSheetOfInvnetoryClearance) — enum(ONGOING, COMPLETE)
  • 수정일 (updatedDate) — LocalDateTime

attributeByProduct (제품별 속성값)

  • 제품별 속성값 id (attributeByProductId) — Long — 기본 키 — NOT NULL
  • 속성 id (attributeId) — Long — 외래 키 → Attribute.속성 id — NOT NULL
  • 제품 id (productId) — Long — 외래 키 → product.제품 id — NOT NULL
  • 속성값 (valueOfAttribute) — String

buyAndSell (구매/판매)

  • 주문번호 (buyAndSellId) — Long — 기본 키 — NOT NULL
  • 거래처 id (correspondentId) — Long — 외래 키 → correspondent.거래처 id — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 발주일/판매일 (orderDate) — LocalDateTime
  • 납기/출고 예정일 (expectedDeliveryDate) — LocalDateTime

correspondent (거래처)

  • 거래처 id (correspondentId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 거래처명 (nameOfCorrespondent) — String
  • 거래처 전화번호 (phoneNumberOfCorrespondent) — String
  • 거래처 이메일 (emailOfCorrespondent) — String

inventoryChanges (재고 변동)

  • 재고 변동 id (inventoryChangesId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 거래처 id (correspondentId) — Long — 외래 키 → correspondent.거래처 id — NOT NULL
  • 멤버 id (memberId) — Long — 외래 키 → Member.멤버 id — NOT NULL
  • 제품 id (productId) — Long — 외래 키 → product.제품 id — NOT NULL
  • 상태 (stateOfInventoryChanges) — String
  • 재고 변동 타입 (typeOfInventoryChanges) — enum(STORAGE, RETRIEVAL, ADJUSTMENT, MOVEMENT)
  • 작성일 (createdDateOfInventoryChanges) — LocalDateTime
  • 수량 (quantityOfProductByInventoryChanges) — Long
  • 변동 전 수량 (quantityOfProductsBeforeChanges) — Long

inventoryClearance (재고 조사)

  • 재고 조사 id (inventoryClearanceId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 제목 (titleOfInventoryClearance) — String
  • 상태 (stateOfInventoryClearance) — enum(ONGOING, REVIEWWAITING, CLOSING)
  • 생성일 (createdDateOfInventoryClearance) — LocalDateTime
  • 마감일 (closedDate) — LocalDateTime

product (제품)

  • 제품 id (productId) — Long — 기본 키 — NOT NULL
  • 팀 id (teamId) — Long — 외래 키 → team.팀 id — NOT NULL
  • 제품명 (SKU) — String
  • 제품 이미지 (productImageUrl) — String
  • 바코드 (barcode) — Long
  • 구매가 (purchasePrice) — Long
  • 판매가 (sellingPrice) — Long
  • 제품 수량 (quantityOfProduct) — Long

productsOfInventoryClearance (재고조사별 품목)

  • 재고조사별 품목 id (productsOfInventoryclearanceId) — Long — 기본 키 — NOT NULL
  • 제품 id (productId) — Long — 외래 키 → product.제품 id — NOT NULL
  • 재고 조사 id (inventoryClearanceId) — Long — 외래 키 → inventoryClearance.재고 조사 id — NOT NULL
  • 재고조사 수량 (quantityOfProductsOfInventoryClearance) — Long

productsOfSheet (시트별 품목)

  • 시트별 품목 id (productsOfSheetId) — Long — 기본 키 — NOT NULL
  • 재고조사 시트 id (sheetOfInventoryClearanceId) — Long — 외래 키 → SheetOfInventoryClearance.재고조사 시트 id — NOT NULL
  • 재고조사별 품목 id (productsOfInventoryclearanceId) — Long — 외래 키 → productsOfInventoryClearance.재고조사별 품목 id — NOT NULL
  • 재고조사 수량 (quantityOfProductsOfSheet) — Long

purchaseItem (구매 물품)

  • 구매 물품 id (purchaseItemId) — Long — 기본 키 — NOT NULL
  • 제품 id (productId) — Long — 외래 키 → product.제품 id — NOT NULL
  • 주문번호 (buyAndSellId) — Long — 외래 키 → buyAndSell.주문번호 — NOT NULL
  • 수량 (quantityOfPurchaseItem) — Long
  • 단가 (priceOfPurchaseItem) — Long

team (팀)

  • 팀 id (teamId) — Long — 기본 키 — NOT NULL
  • 팀 이름 (nameOfTeam) — String
  • 팀 프로필 사진 (imageUrlOfTeam) — String