23 lines
507 B
C#
23 lines
507 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using PSTW_CentralSystem.Models;
|
|
|
|
namespace PSTW_CentralSystem.Areas.OTcalculate.Models
|
|
{
|
|
public class RateModel
|
|
{
|
|
[Key]
|
|
public int RateId { get; set; }
|
|
|
|
[Column(TypeName = "decimal(10,2)")]
|
|
public decimal RateValue { get; set; }
|
|
|
|
public int UserId { get; set; }
|
|
|
|
[ForeignKey("UserId")]
|
|
|
|
public virtual UserModel? Users { get; set; }
|
|
|
|
}
|
|
}
|