sockscape/server_old/DAL/User.cs

29 lines
775 B
C#
Raw Normal View History

2017-08-23 21:00:44 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2017-08-25 21:03:33 +00:00
using System.ComponentModel.DataAnnotations.Schema;
2017-08-23 21:00:44 +00:00
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
2017-08-25 21:03:33 +00:00
[Required, MaxLength(16)]
public string Username { get; set; }
2017-08-23 21:00:44 +00:00
2017-09-05 04:24:40 +00:00
[Required, MaxLength(256)]
public string Email { get; set; }
2017-08-23 21:00:44 +00:00
[Required]
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
}