aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-08 21:02:49 +0800
committercrupest <crupest@outlook.com>2022-12-20 20:32:52 +0800
commit20989284d1884892b469e4824e1b8a41d6743bc2 (patch)
treef26880280ee81dabb7bbc876bdb475ed9f77bdeb /docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs
parent62c92f97358e2a98271aaf11fdd5626e21cf4689 (diff)
downloadcrupest-20989284d1884892b469e4824e1b8a41d6743bc2.tar.gz
crupest-20989284d1884892b469e4824e1b8a41d6743bc2.tar.bz2
crupest-20989284d1884892b469e4824e1b8a41d6743bc2.zip
Develop secret api. v19
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs
index 01aead7..d4c1b66 100644
--- a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs
@@ -4,13 +4,13 @@ namespace CrupestApi.Secrets;
public class SecretInfo
{
- [Column(NonNullable = true)]
+ [Column(NotNull = true)]
public string Key { get; set; } = default!;
- [Column(NonNullable = true)]
+ [Column(NotNull = true)]
public string Secret { get; set; } = default!;
[Column(DefaultEmptyForString = true)]
public string Description { get; set; } = default!;
- [Column(NonNullable = false)]
+ [Column(NotNull = false)]
public DateTime ExpireTime { get; set; }
public bool Revoked { get; set; }
public DateTime CreateTime { get; set; }