fronted: login

This commit is contained in:
2025-08-15 20:03:07 +02:00
parent f61b48fa4b
commit 1b2d95344a
184 changed files with 5238 additions and 232 deletions

View File

@@ -6,12 +6,15 @@ namespace back.DataModels;
[Table("Persons")]
public class PersonModel
{
public PersonModel() { }
[Key]
public string Id { get; set; }
[Required, MaxLength(100)]
public string? Name { get; set; }
public string? ProfilePicture { get; set; }
public string? Avatar { get; set; }
[ForeignKey("SocialMediaId")]
public SocialMedia? SocialMedia { get; set; }
[MaxLength(250)]
public string? Bio { get; set; } // Optional field for a short biography or description
@@ -33,9 +36,11 @@ public class PersonModel
}
}
[Table("SocialMediaLinks")]
[Table("SocialMedia")]
public class SocialMedia
{
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString();
public string? Facebook { get; set; }
public string? Instagram { get; set; }
public string? Twitter { get; set; }