Add Unique constraint to email of users

This commit is contained in:
ig 2023-10-26 12:38:37 +02:00
parent 5027e10189
commit 6e7d337d92
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ namespace InnovEnergy.App.Backend.DataTypes;
public class User : TreeNode public class User : TreeNode
{ {
[Unique]
public String Email { get; set; } = null!; public String Email { get; set; } = null!;
public Boolean HasWriteAccess { get; set; } = false; public Boolean HasWriteAccess { get; set; } = false;
public Boolean MustResetPassword { get; set; } = false; public Boolean MustResetPassword { get; set; } = false;