首页 文章

仓库的库存管理

提问于
浏览
0

我正在尝试为具有各种物品的仓库创建库存管理系统 . 我现在一直在思考我的 table 应该是什么样子 . 我是根据老板交给我的送货单来设计的 . 以下是一些送货单包含的内容:

Delivery receipt# :1
Quantity: 60 pcs 
Item description : 
    T SHIRTS with logo
        small : 10 pcs
        xsmall : 20 pcs
        large : 30 pcs

------------------

Delivery receipt#: 2
Quantity :  40 pcs 
Item description :   
    Tumblers with straw
        2 BOXES * 20 pcs (this is 20pc/per box)

------------------

Delivery receipt#: 2
Quantity :  100 pcs 
Item description :   
    Marketing brochures
        10 bundles * 10 pcs (10 pcs per bundle)

我打算在项目描述下面制作这些数据 . 但我没有适当的条款 .

你能建议我的物品表怎么样?

谢谢!

1 回答

  • 1

    通常,最好的方法是从描述中删除名词 .

    • 送货单

    • 项目说明

    显然, Receipt 将是一张 table . 那么它包含什么?

    • 数量

    • 项目

    但这意味着每次购买只能有一件商品,而不是将其移植到新表 ReceiptItems . 有了这个,你可以使用 receipt number 的主键,以及将成为 item 表的主键 .

    Receipt Items

    ReceiptID(主键和外键)

    ItemID(主键和外键)

    数量

    Items

    ItemID(主键)

    商品描述

    商品价格

    物品种类

    Receipt

    ReceiptID(主键)

    买方(只是另一个可选的)

相关问题