Initial commit

This commit is contained in:
shiyu
2025-05-18 20:48:20 +08:00
commit cde2c7b997
79 changed files with 5713 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Foxel.Models.DataBase;
public class Favorite
{
[Key]
public int Id { get; set; }
public User User { get; set; }
public int PictureId { get; set; }
[ForeignKey("PictureId")]
public Picture Picture { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}