diff options
author | crupest <crupest@outlook.com> | 2020-02-29 18:12:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 18:12:13 +0800 |
commit | b6b6c3089d42adc3d39aeb5efcbce7bdef09b3cb (patch) | |
tree | 9cbe0f8f6e6be22f66893b666ca537c0aebf268b /Timeline/Entities | |
parent | 6bf12fb184ee87ba28293ecc576915cbbeab0cf0 (diff) | |
parent | 668459f88fdef5f385759e53ee7f5206131da98b (diff) | |
download | timeline-b6b6c3089d42adc3d39aeb5efcbce7bdef09b3cb.tar.gz timeline-b6b6c3089d42adc3d39aeb5efcbce7bdef09b3cb.tar.bz2 timeline-b6b6c3089d42adc3d39aeb5efcbce7bdef09b3cb.zip |
Merge pull request #66 from crupest/timeline-name
Widen timeline name constraint.
Diffstat (limited to 'Timeline/Entities')
-rw-r--r-- | Timeline/Entities/UserAvatarEntity.cs | 2 | ||||
-rw-r--r-- | Timeline/Entities/UserEntity.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Entities/UserAvatarEntity.cs b/Timeline/Entities/UserAvatarEntity.cs index 6cecce1a..be094a77 100644 --- a/Timeline/Entities/UserAvatarEntity.cs +++ b/Timeline/Entities/UserAvatarEntity.cs @@ -17,7 +17,7 @@ namespace Timeline.Entities [Column("type")]
public string? Type { get; set; }
- [Column("etag"), MaxLength(30)]
+ [Column("etag")]
public string? ETag { get; set; }
[Column("last_modified"), Required]
diff --git a/Timeline/Entities/UserEntity.cs b/Timeline/Entities/UserEntity.cs index 946c3fa2..1ef3f98c 100644 --- a/Timeline/Entities/UserEntity.cs +++ b/Timeline/Entities/UserEntity.cs @@ -17,7 +17,7 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
- [Column("username"), MaxLength(26), Required]
+ [Column("username"), Required]
public string Username { get; set; } = default!;
[Column("password"), Required]
@@ -29,7 +29,7 @@ namespace Timeline.Entities [Column("version"), Required]
public long Version { get; set; }
- [Column("nickname"), MaxLength(100)]
+ [Column("nickname")]
public string? Nickname { get; set; }
public UserAvatarEntity? Avatar { get; set; }
|