Skip to content

Instantly share code, notes, and snippets.

@YannickFricke
Created October 28, 2017 20:05
Show Gist options
  • Save YannickFricke/bf7473dd6486143336dc610932097249 to your computer and use it in GitHub Desktop.
Save YannickFricke/bf7473dd6486143336dc610932097249 to your computer and use it in GitHub Desktop.
using System;
using Lappa.ORM;
namespace deployer.Definitions.User
{
[DBTable(Name = "user", Pluralize = false)]
class User : Entity
{
[DBField(Name = "id", Null = false)]
public int Id { get; set; }
[DBField(Name = "username", Null = false)]
public string Username { get; set; }
[DBField(Name = "password", Null = false)]
public string Password { get; set; }
[DBField(Name = "email", Null = false)]
public string Email{ get; set; }
[DBField(Name = "name", Null = false)]
public string Name { get; set; }
[DBField(Name = "lastname", Null = false)]
public string LastName { get; set; }
[DBField(Name = "lastIp", Null = false)]
public string IP { get; set; }
[DBField(Name = "createdAt", Null = false)]
public DateTime CreatedAt { get; set; }
[DBField(Name = "updatedAt", Null = false)]
public DateTime UpdatedAt { get; set; }
[DBField(Name = "isDisabled", Null = false)]
public bool IsDisabled { get; set; }
[DBField(Name = "payedUnti", Null = false)]
public DateTime PayedUntil{ get; set; }
[DBField(Name = "roles", Null = false)]
public string Roles { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment