forked from ddrilling/AsbCloudServer
31 lines
785 B
C#
31 lines
785 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_customer")]
|
|
public partial class Customer: IId
|
|
{
|
|
public Customer()
|
|
{
|
|
Users = new HashSet<User>();
|
|
Wells = new HashSet<Well>();
|
|
}
|
|
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
[Column("caption")]
|
|
[StringLength(255)]
|
|
public string Caption { get; set; }
|
|
|
|
[InverseProperty(nameof(User.Customer))]
|
|
public virtual ICollection<User> Users { get; set; }
|
|
[InverseProperty(nameof(Well.Customer))]
|
|
public virtual ICollection<Well> Wells { get; set; }
|
|
}
|
|
}
|