Data model ajustements
This commit is contained in:
3497
src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.Designer.cs
generated
Normal file
3497
src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
108
src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.cs
Normal file
108
src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.cs
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Yavsc.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class ActivityNulls : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "UserModified",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "UserCreated",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "SettingsClassName",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "Photo",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "ModeratorGroupName",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "UserModified",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "UserCreated",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "SettingsClassName",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "Photo",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "ModeratorGroupName",
|
||||||
|
table: "Activities",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2081,7 +2081,6 @@ namespace Yavsc.Migrations
|
|||||||
.HasColumnType("boolean");
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
b.Property<string>("ModeratorGroupName")
|
b.Property<string>("ModeratorGroupName")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("Name")
|
b.Property<string>("Name")
|
||||||
@ -2092,22 +2091,18 @@ namespace Yavsc.Migrations
|
|||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("Photo")
|
b.Property<string>("Photo")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<int>("Rate")
|
b.Property<int>("Rate")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.Property<string>("SettingsClassName")
|
b.Property<string>("SettingsClassName")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("UserCreated")
|
b.Property<string>("UserCreated")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("UserModified")
|
b.Property<string>("UserModified")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.HasKey("Code");
|
b.HasKey("Code");
|
||||||
|
@ -28,7 +28,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
[YaStringLength(512)]
|
[YaStringLength(512)]
|
||||||
[Display(Name = "Code du parent")]
|
[Display(Name = "Code du parent")]
|
||||||
[ForeignKey("Parent")]
|
[ForeignKey("Parent")]
|
||||||
public string ParentCode { get; set; }
|
public string? ParentCode { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Activité parent"), JsonIgnore]
|
[Display(Name = "Activité parent"), JsonIgnore]
|
||||||
public virtual Activity Parent { get; set; }
|
public virtual Activity Parent { get; set; }
|
||||||
@ -41,7 +41,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Photo")]
|
[Display(Name = "Photo")]
|
||||||
public string Photo { get; set; }
|
public string? Photo { get; set; }
|
||||||
|
|
||||||
[InverseProperty("Context")]
|
[InverseProperty("Context")]
|
||||||
[DisplayAttribute(Name = "Services liés")]
|
[DisplayAttribute(Name = "Services liés")]
|
||||||
@ -52,7 +52,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[DisplayAttribute(Name = "Groupe de modération")]
|
[DisplayAttribute(Name = "Groupe de modération")]
|
||||||
public string ModeratorGroupName { get; set; }
|
public string? ModeratorGroupName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// indice de recherche de cette activité
|
/// indice de recherche de cette activité
|
||||||
@ -64,7 +64,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
[DisplayFormatAttribute(DataFormatString="{0}%")]
|
[DisplayFormatAttribute(DataFormatString="{0}%")]
|
||||||
public int Rate { get; set; }
|
public int Rate { get; set; }
|
||||||
[DisplayAttribute(Name = "Classe de paramétrage")]
|
[DisplayAttribute(Name = "Classe de paramétrage")]
|
||||||
public string SettingsClassName { get; set; }
|
public string? SettingsClassName { get; set; }
|
||||||
|
|
||||||
[InverseProperty("Context")]
|
[InverseProperty("Context")]
|
||||||
[Display(Name="Formulaires de commande")]
|
[Display(Name="Formulaires de commande")]
|
||||||
@ -77,7 +77,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Display(Name="Createur")]
|
[Display(Name="Createur")]
|
||||||
public string UserCreated
|
public string? UserCreated
|
||||||
{
|
{
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ namespace Yavsc.Models.Workflow
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Display(Name="Utilisateur ayant modifié le dernier")]
|
[Display(Name="Utilisateur ayant modifié le dernier")]
|
||||||
public string UserModified
|
public string? UserModified
|
||||||
{
|
{
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user