diff options
author | crupest <crupest@outlook.com> | 2020-01-21 01:11:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-21 01:11:17 +0800 |
commit | 4aadb05cd5718c7d16bf432c96e23ae4e7db4783 (patch) | |
tree | a45506852659b9d8e2bfe0b9e58a496060f7cd9b /Timeline/Entities/User.cs | |
parent | e6069a6980ec6d2505e19026d4c84a9588f153dc (diff) | |
download | timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.gz timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.bz2 timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.zip |
...
Diffstat (limited to 'Timeline/Entities/User.cs')
-rw-r--r-- | Timeline/Entities/User.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Timeline/Entities/User.cs b/Timeline/Entities/User.cs deleted file mode 100644 index e725a69a..00000000 --- a/Timeline/Entities/User.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Timeline.Entities
-{
- public static class UserRoles
- {
- public const string Admin = "admin";
- public const string User = "user";
- }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is an entity class.")]
- [Table("users")]
- public class User
- {
- [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public long Id { get; set; }
-
- [Column("name"), MaxLength(26), Required]
- public string Name { get; set; } = default!;
-
- [Column("password"), Required]
- public string EncryptedPassword { get; set; } = default!;
-
- [Column("roles"), Required]
- public string RoleString { get; set; } = default!;
-
- [Column("version"), Required]
- public long Version { get; set; }
-
- public UserAvatar? Avatar { get; set; }
-
- public UserDetail? Detail { get; set; }
-
- public List<TimelineEntity> Timelines { get; set; } = default!;
-
- public List<TimelinePostEntity> TimelinePosts { get; set; } = default!;
-
- public List<TimelineMemberEntity> TimelinesJoined { get; set; } = default!;
- }
-}
|