This commit is contained in:
2018-08-29 15:17:44 +00:00
parent 8c1d448ade
commit 5828f617e8
8 changed files with 16 additions and 63 deletions

View File

@@ -9,7 +9,7 @@ namespace AyaNova.Models
{
public long Id { get; set; }
public uint ConcurrencyToken { get; set; }
public DateTime Created { get; set; }//time it was uploaded not original file creation time, we don't have that
[Required]
public long OwnerId { get; set; }
//-----------------------------------------
@@ -25,13 +25,5 @@ namespace AyaNova.Models
public string ContentType { get; set; }//mime type
public string Notes { get; set; }
public FileAttachment()
{
Created = System.DateTime.UtcNow;
}
}
}
//"AttachToObjectType and / or AttachToObjectId public AuthorizationRoles Roles { get; set; }
}

View File

@@ -19,15 +19,7 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }
public bool? Stock { get; set; }
public DateTime Created { get; set; }
public Locale()
{
Created = System.DateTime.UtcNow;
}
//Relationship
//was this but..

View File

@@ -10,7 +10,6 @@ namespace AyaNova.Models
public partial class Tag
{
public long Id { get; set; }
public DateTime Created { get; set; }
public uint ConcurrencyToken { get; set; }
[Required]
@@ -18,13 +17,5 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }//max 35 characters ascii set
public Tag()
{
Created = System.DateTime.UtcNow;
}
}
}

View File

@@ -13,7 +13,6 @@ namespace AyaNova.Models
public uint ConcurrencyToken { get; set; }
[Required]
public long OwnerId { get; set; }
public DateTime Created { get; set; }
[Required]
public long TagId { get; set; }
@@ -22,12 +21,5 @@ namespace AyaNova.Models
[Required]
public AyaType TagToObjectType { get; set; }
public TagMap()
{
Created = System.DateTime.UtcNow;
}
}
}

View File

@@ -8,7 +8,6 @@ namespace AyaNova.Models
public partial class User
{
public long Id { get; set; }
public DateTime Created { get; set; }
public uint ConcurrencyToken { get; set; }
[Required]
public long OwnerId { get; set; }
@@ -21,12 +20,5 @@ namespace AyaNova.Models
public DateTime? DlKeyExpire { get; set; }
public long LocaleId { get; set; }
public User()
{
Created = System.DateTime.UtcNow;
}
}
}