fronted: login
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user