sockscape/server/DAL/User.cs

27 lines
693 B
C#
Raw Normal View History

2017-08-23 21:00:44 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2017-08-23 21:00:44 +00:00
namespace SockScape.DAL {
public partial class User {
public long Id { get; set; }
2017-08-23 21:00:44 +00:00
[Required]
[MaxLength(16)]
public string Username { get; set; }
2017-08-23 21:00:44 +00:00
[Required]
[MaxLength(36), MinLength(36)]
public byte[] Password { get; set; }
[Required]
public DateTime Joined { get; set; }
public DateTime? LastLogin { get; set; }
public virtual ICollection<Origin> Origins { get; set; }
public virtual Session Session { get; set; }
}
2017-08-23 21:00:44 +00:00
}