27 lines
690 B
C#
27 lines
690 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Yavsc.Models.Workflow;
|
|
|
|
namespace Yavsc.Models.Musical
|
|
{
|
|
public class InstrumentRating
|
|
{
|
|
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id {get; set; }
|
|
|
|
[Required]
|
|
public long InstrumentId { get; set; }
|
|
|
|
[ForeignKey("InstrumentId")]
|
|
public virtual Instrument Instrument { get; set; }
|
|
|
|
[Range(-100,100)]
|
|
public int Rate { get; set; }
|
|
|
|
public string OwnerId { get; set; }
|
|
|
|
[ForeignKey("OwnerId")]
|
|
public virtual PerformerProfile Profile { get; set; }
|
|
|
|
}
|
|
} |