add access level

This commit is contained in:
2024-08-12 17:15:11 +03:30
parent d123ce205f
commit 4380d9da5c
7 changed files with 103 additions and 37 deletions

View File

@ -67,7 +67,7 @@
<Property Name="usename" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="password" Type="nvarchar(max)" Nullable="false" />
<Property Name="displayname" Type="nvarchar" MaxLength="50" />
<Property Name="role" Type="int" Nullable="false" />
<Property Name="role" Type="nvarchar" MaxLength="70" Nullable="false" />
</EntityType>
<EntityType Name="viewlog">
<Key>
@ -152,7 +152,7 @@
<Property Name="usename" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="password" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="displayname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="role" Type="Int32" Nullable="false" />
<Property Name="role" Type="String" Nullable="false" />
</EntityType>
<EntityType Name="response">
<Key>

View File

@ -18,6 +18,6 @@ namespace WebApplication1.Models
public string usename { get; set; }
public string password { get; set; }
public string displayname { get; set; }
public int role { get; set; }
public string role { get; set; }
}
}