---
# System prepended metadata

title: JamboPos Project Planning

---

# JamboPos Project Planning

## Entities

![](https://i.imgur.com/zTw0Rqg.png)

1. ### User
    - first name
    - second name
    - designation
    - shop id
    - password
    #### Relationships
    *   HasMany bills(staff) 
    *   belongsTo a shop 
2. ### Product
    - product title
    - quantity
    - product description
    - product price
    - stock
    - unit price
    - barcode number
    - supplier_id
    - payment_id
    ##### Relationships
    * belongsTo a supplier
    * belongsTo payment(nullable relationship)
    * belongsTo a receipt(OneToMany)
3. #### Supplier
    - supplier name
    - address
    - material
    - contact
    - amount
    #### Relationships
    - hasMany products
4. #### Bill
    - user_id
    - customer_id
    - payment_id
    #### Relationships
    - belongsTo a user(who created it)
    - belongsTo a customer(OneToMany)
    - belongsTo a payment(OneToOne)
5. #### Customer 
    - customer id
6. #### Shops
    - shop location
7. #### Payments
    - exact_amount
    - mode of payment
    - product_id
    - product_price
    - balance
    - transaction ref
    - tax amount
    - tax deducted
8. ### Receipt
    * payment_id
    * date created
    * user_id
    * customer_id
    #### Relationships
    * HasMany products
    * belongsTo a customer
    * belongsTo a user    

# MILESTONES
> composer create-project --prefer -dist laravel\laravel jambopos
> composer5 require passport
> 
