Switched to net9 and finished event workflow
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user