forked from ddrilling/AsbCloudServer
Add OperationValue Permissions
This commit is contained in:
parent
7080b3e855
commit
c2608bb24b
6072
AsbCloudDb/Migrations/20220615103351_Add_OperationValuePermissions.Designer.cs
generated
Normal file
6072
AsbCloudDb/Migrations/20220615103351_Add_OperationValuePermissions.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace AsbCloudDb.Migrations
|
||||||
|
{
|
||||||
|
public partial class Add_OperationValuePermissions : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.InsertData(
|
||||||
|
table: "t_permission",
|
||||||
|
columns: new[] { "id", "description", "name" },
|
||||||
|
values: new object[,]
|
||||||
|
{
|
||||||
|
{ 389, "Разрешение просматривать целевые значения", "OperationValue.get" },
|
||||||
|
{ 390, "Разрешение редактировать целевые значения", "OperationValue.edit" },
|
||||||
|
{ 391, "Разрешение удалять целевые значения", "OperationValue.delete" }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DeleteData(
|
||||||
|
table: "t_permission",
|
||||||
|
keyColumn: "id",
|
||||||
|
keyValue: 389);
|
||||||
|
|
||||||
|
migrationBuilder.DeleteData(
|
||||||
|
table: "t_permission",
|
||||||
|
keyColumn: "id",
|
||||||
|
keyValue: 390);
|
||||||
|
|
||||||
|
migrationBuilder.DeleteData(
|
||||||
|
table: "t_permission",
|
||||||
|
keyColumn: "id",
|
||||||
|
keyValue: 391);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1589,6 +1589,24 @@ namespace AsbCloudDb.Migrations
|
|||||||
Name = "DetectedOperation.get"
|
Name = "DetectedOperation.get"
|
||||||
},
|
},
|
||||||
new
|
new
|
||||||
|
{
|
||||||
|
Id = 389,
|
||||||
|
Description = "Разрешение просматривать целевые значения",
|
||||||
|
Name = "OperationValue.get"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = 390,
|
||||||
|
Description = "Разрешение редактировать целевые значения",
|
||||||
|
Name = "OperationValue.edit"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = 391,
|
||||||
|
Description = "Разрешение удалять целевые значения",
|
||||||
|
Name = "OperationValue.delete"
|
||||||
|
},
|
||||||
|
new
|
||||||
{
|
{
|
||||||
Id = 400,
|
Id = 400,
|
||||||
Description = "Разрешение просматривать инфо по wits параметрам",
|
Description = "Разрешение просматривать инфо по wits параметрам",
|
||||||
|
@ -512,6 +512,11 @@ namespace AsbCloudDb.Model
|
|||||||
new Permission{ Id = 386, Name="DailyReport.get", Description="Разрешение просматривать суточный рапорт"},
|
new Permission{ Id = 386, Name="DailyReport.get", Description="Разрешение просматривать суточный рапорт"},
|
||||||
new Permission{ Id = 387, Name="DailyReport.edit", Description="Разрешение редактировать суточный рапорт"},
|
new Permission{ Id = 387, Name="DailyReport.edit", Description="Разрешение редактировать суточный рапорт"},
|
||||||
new Permission{ Id = 388, Name="DetectedOperation.get", Description="Разрешение просматривать авто. определенные операции"},
|
new Permission{ Id = 388, Name="DetectedOperation.get", Description="Разрешение просматривать авто. определенные операции"},
|
||||||
|
|
||||||
|
new Permission{ Id = 389, Name="OperationValue.get", Description="Разрешение просматривать целевые значения"},
|
||||||
|
new Permission{ Id = 390, Name="OperationValue.edit", Description="Разрешение редактировать целевые значения"},
|
||||||
|
new Permission{ Id = 391, Name="OperationValue.delete", Description="Разрешение удалять целевые значения"},
|
||||||
|
|
||||||
new Permission{ Id = 400, Name="WitsInfo.get", Description="Разрешение просматривать инфо по wits параметрам"},
|
new Permission{ Id = 400, Name="WitsInfo.get", Description="Разрешение просматривать инфо по wits параметрам"},
|
||||||
new Permission{ Id = 401, Name="WitsRecord1.get", Description="Разрешение просматривать WITS record 1"},
|
new Permission{ Id = 401, Name="WitsRecord1.get", Description="Разрешение просматривать WITS record 1"},
|
||||||
new Permission{ Id = 407, Name="WitsRecord7.get", Description="Разрешение просматривать WITS record 7"},
|
new Permission{ Id = 407, Name="WitsRecord7.get", Description="Разрешение просматривать WITS record 7"},
|
||||||
|
Loading…
Reference in New Issue
Block a user