| 1 | group: StockManagement
|
|---|
| 2 |
|
|---|
| 3 | users = {
|
|---|
| 4 | user_id:number, username:string, password:string, full_name:string, email:string, role:string, is_active:number
|
|---|
| 5 | 1, ceyda_admin, test123, Ceyda_Huseini, ceyda_gmail.com, Admin, 1
|
|---|
| 6 | 2, gjorgji_adm, pass123, Gjorgji_Naumov, gjorgji_system.mk, Admin, 1
|
|---|
| 7 | 3, elena_inv, pass456, Elena_Stojanovska, elena_system.mk, InventoryManager, 1
|
|---|
| 8 | 4, zoran_sales, pass789, Zoran_Milevski, zoran_system.mk, SalesPersonnel, 1
|
|---|
| 9 | 5, stefan_wh, pass000, Stefan_Trajkovski, stefan_system.mk, WarehouseStaff, 1
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | customer = {
|
|---|
| 13 | customer_id:number, name:string, email:string, phone:string, address:string
|
|---|
| 14 | 1, Petar_Naumovski, petar_email.mk, 38970123456, Skopje
|
|---|
| 15 | 2, Marija_Jovanovska, marija_email.mk, 38971987654, Bitola
|
|---|
| 16 | 3, Igor_Angelov, igor_email.mk, 38975555444, Kumanovo
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | category = {
|
|---|
| 20 | category_id:number, name:string, description:string
|
|---|
| 21 | 1, IT_Oprema, Kompjuteri_laptopi_mrezna_oprema
|
|---|
| 22 | 2, Kancelariska_Oprema, Mebeli_materijali_kancelarija
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | supplier = {
|
|---|
| 26 | supplier_id:number, name:string, contact_person:string, phone:string, email:string, address:string
|
|---|
| 27 | 1, Makedonski_Telekom, Darko_Kolev, 38923100000, contact_telekom.mk, Skopje
|
|---|
| 28 | 2, Anhoch_PC_Market, Bojan_Janev, 38923111888, prodazba_anhoch.com, Skopje
|
|---|
| 29 | 3, Prosvetno_Delo, Ana_Ristovska, 38923222111, info_prosvetno.mk, Vizbegovo
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | product = {
|
|---|
| 33 | product_id:number, name:string, description:string, sku:string, unit_price:number, reorder_level:number, category_id:number, supplier_id:number, is_active:number
|
|---|
| 34 | 1, Monitor_Dell_24, Full_HD_IPS_Monitor, DELL-24-IPS, 9500.00, 10, 1, 2, 1
|
|---|
| 35 | 2, Laptop_HP_250_G8, Core_i5_8GB_256GB, HP-250-G8, 32000.00, 5, 1, 2, 1
|
|---|
| 36 | 3, Kancelariski_Stol, Crna_koza_podesiva, CHAIR-ERG-01, 6500.00, 15, 2, 3, 1
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| 39 | warehouse = {
|
|---|
| 40 | warehouse_id:number, name:string, location:string, capacity:number
|
|---|
| 41 | 1, Skopje_Magacin, Vizbegovo_Skopje, 10000
|
|---|
| 42 | 2, Bitola_Centar, Kravarski_Bitola, 4000
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 | warehouse_stock = {
|
|---|
| 46 | warehouse_id:number, product_id:number, quantity_on_hand:number
|
|---|
| 47 | 1, 1, 45
|
|---|
| 48 | 1, 2, 12
|
|---|
| 49 | 2, 2, 5
|
|---|
| 50 | 2, 3, 30
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | sale = {
|
|---|
| 54 | sale_id:number, total_amount:number, user_id:number, customer_id:number, warehouse_id:number
|
|---|
| 55 | 1, 41500.00, 3, 1, 1
|
|---|
| 56 | 2, 6500.00, 3, 2, 2
|
|---|
| 57 | }
|
|---|
| 58 |
|
|---|
| 59 | sale_item = {
|
|---|
| 60 | sale_id:number, product_id:number, quantity:number, unit_price_at_sale:number
|
|---|
| 61 | 1, 2, 1, 32000.00
|
|---|
| 62 | 1, 1, 1, 9500.00
|
|---|
| 63 | 2, 3, 1, 6500.00
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | purchase_order = {
|
|---|
| 67 | po_id:number, order_date:date, expected_delivery_date:date, status:string, supplier_id:number, warehouse_id:number
|
|---|
| 68 | 1, 2025-01-15, 2025-02-01, Pending, 2, 1
|
|---|
| 69 | 2, 2025-01-15, 2025-02-05, Confirmed, 3, 2
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 | purchase_order_item = {
|
|---|
| 73 | po_id:number, product_id:number, quantity:number, unit_cost:number, received_quantity:number
|
|---|
| 74 | 1, 2, 10, 28000.00, 0
|
|---|
| 75 | 2, 3, 20, 5000.00, 0
|
|---|
| 76 | } |
|---|