source: StockMaster/Models/WarehouseStock.cs@ dfe03b8

main
Last change on this file since dfe03b8 was dfe03b8, checked in by Ceyda <ceyda.huseini@…>, 3 days ago

Initialize StockMaster project

  • Property mode set to 100644
File size: 761 bytes
Line 
1using System;
2using System.ComponentModel.DataAnnotations;
3using System.ComponentModel.DataAnnotations.Schema;
4
5namespace StockMaster.Models
6{
7 [Table("warehouse_stock", Schema = "stock_management")]
8 public class WarehouseStock
9 {
10 [Column("warehouse_id")]
11 public int WarehouseId { get; set; }
12
13 [ForeignKey("WarehouseId")]
14 public Warehouse Warehouse { get; set; }
15
16 [Column("product_id")]
17 public int ProductId { get; set; }
18
19 [ForeignKey("ProductId")]
20 public Product Product { get; set; }
21
22 [Column("quantity_on_hand")]
23 public int QuantityOnHand { get; set; } = 0;
24
25 [Column("last_updated")]
26 public DateTime LastUpdated { get; set; } = DateTime.Now;
27 }
28}
Note: See TracBrowser for help on using the repository browser.