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-06-02 21:02:48 +00:00
|
|
|
|
|
2017-08-23 21:00:44 +00:00
|
|
|
|
namespace SockScape.DAL {
|
|
|
|
|
public partial class User {
|
2017-06-01 20:54:32 +00:00
|
|
|
|
public long Id { get; set; }
|
2017-08-23 21:00:44 +00:00
|
|
|
|
|
2017-08-25 21:03:33 +00:00
|
|
|
|
[Required, MaxLength(16)]
|
2017-06-01 20:54:32 +00:00
|
|
|
|
public string Username { 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-06-01 20:54:32 +00:00
|
|
|
|
}
|
2017-08-23 21:00:44 +00:00
|
|
|
|
}
|