| [dfe03b8] | 1 | using System;
|
|---|
| 2 | using System.ComponentModel.DataAnnotations;
|
|---|
| 3 | using System.ComponentModel.DataAnnotations.Schema;
|
|---|
| 4 |
|
|---|
| 5 | namespace StockMaster.Models
|
|---|
| 6 | {
|
|---|
| 7 | [Table("product_price_log", Schema = "stock_management")]
|
|---|
| 8 | public class ProductPriceLog
|
|---|
| 9 | {
|
|---|
| 10 | [Key]
|
|---|
| 11 | [Column("log_id")]
|
|---|
| 12 | public int LogId { get; set; }
|
|---|
| 13 |
|
|---|
| 14 | [Column("product_id")]
|
|---|
| 15 | public int ProductId { get; set; }
|
|---|
| 16 |
|
|---|
| 17 | [Column("product_name")]
|
|---|
| 18 | public string ProductName { get; set; }
|
|---|
| 19 |
|
|---|
| 20 | [Column("old_price")]
|
|---|
| 21 | public decimal OldPrice { get; set; }
|
|---|
| 22 |
|
|---|
| 23 | [Column("new_price")]
|
|---|
| 24 | public decimal NewPrice { get; set; }
|
|---|
| 25 |
|
|---|
| 26 | [Column("changed_by")]
|
|---|
| 27 | public string ChangedBy { get; set; }
|
|---|
| 28 |
|
|---|
| 29 | [Column("changed_at")]
|
|---|
| 30 | public DateTime ChangedAt { get; set; }
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | public class VwSalesByDay
|
|---|
| 34 | {
|
|---|
| 35 | [Column("day_number")]
|
|---|
| 36 | public int DayNumber { get; set; }
|
|---|
| 37 |
|
|---|
| 38 | [Column("day_name")]
|
|---|
| 39 | public string DayName { get; set; }
|
|---|
| 40 |
|
|---|
| 41 | [Column("total_sales")]
|
|---|
| 42 | public long TotalSales { get; set; }
|
|---|
| 43 |
|
|---|
| 44 | [Column("total_revenue")]
|
|---|
| 45 | public decimal TotalRevenue { get; set; }
|
|---|
| 46 |
|
|---|
| 47 | [Column("avg_sale_value")]
|
|---|
| 48 | public decimal AvgSaleValue { get; set; }
|
|---|
| 49 |
|
|---|
| 50 | [Column("total_items_sold")]
|
|---|
| 51 | public decimal TotalItemsSold { get; set; }
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | public class VwEmployeeRanking
|
|---|
| 55 | {
|
|---|
| 56 | [Column("user_id")]
|
|---|
| 57 | public int UserId { get; set; }
|
|---|
| 58 |
|
|---|
| 59 | [Column("full_name")]
|
|---|
| 60 | public string FullName { get; set; }
|
|---|
| 61 |
|
|---|
| 62 | [Column("role")]
|
|---|
| 63 | public string Role { get; set; }
|
|---|
| 64 |
|
|---|
| 65 | [Column("total_sales")]
|
|---|
| 66 | public long TotalSales { get; set; }
|
|---|
| 67 |
|
|---|
| 68 | [Column("total_revenue")]
|
|---|
| 69 | public decimal TotalRevenue { get; set; }
|
|---|
| 70 |
|
|---|
| 71 | [Column("avg_sale_value")]
|
|---|
| 72 | public decimal AvgSaleValue { get; set; }
|
|---|
| 73 |
|
|---|
| 74 | [Column("unique_customers")]
|
|---|
| 75 | public long UniqueCustomers { get; set; }
|
|---|
| 76 |
|
|---|
| 77 | [Column("revenue_rank")]
|
|---|
| 78 | public long RevenueRank { get; set; }
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | public class VwTodaysSummary
|
|---|
| 83 | {
|
|---|
| 84 | [Column("total_transactions_today")]
|
|---|
| 85 | public long TotalTransactions { get; set; }
|
|---|
| 86 |
|
|---|
| 87 | [Column("total_revenue_today")]
|
|---|
| 88 | public decimal TotalRevenue { get; set; }
|
|---|
| 89 |
|
|---|
| 90 | [Column("total_items_sold_today")]
|
|---|
| 91 | public decimal TotalItemsSold { get; set; }
|
|---|
| 92 |
|
|---|
| 93 | [Column("unique_customers_today")]
|
|---|
| 94 | public long UniqueCustomers { get; set; }
|
|---|
| 95 |
|
|---|
| 96 | [Column("active_warehouses_today")]
|
|---|
| 97 | public long ActiveWarehouses { get; set; }
|
|---|
| 98 | }
|
|---|
| 99 | } |
|---|