main
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.ComponentModel.DataAnnotations;
|
|---|
| 3 | using System.ComponentModel.DataAnnotations.Schema;
|
|---|
| 4 |
|
|---|
| 5 | namespace 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.