Switched to net9 and finished event workflow

This commit is contained in:
2026-01-18 19:30:20 +01:00
parent 8d0573eb7e
commit 2d3c973d47
23 changed files with 142 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SpotiParty.Web.Models;
@@ -6,7 +7,8 @@ public class Event {
[Key]
public Guid Id { get; init; } = Guid.CreateVersion7();
public required User Host { get; set; }
[ForeignKey("host")]
public virtual required User Host { get; set; }
[MaxLength(255)]
public required string Name { get; set; }