Ola-jed_DotWikiApi/DotWikiApi/Models/Snapshot.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DotWikiApi.Models;

public class Snapshot
{
    [Key]
    public int Id { get; set; }
    [Required]
    [MaxLength(100)]
    public string Title { get; set; }
    [Required]
    [Column(TypeName = "text")]
    public string Content { get; set; }
    [Required]
    [MaxLength(100)]
    public string Comment { get; set; }
    [Required]
    public DateTime CreatedAt { get; set; }
    public string ApplicationUserId { get; set; }
    public int ArticleId { get; set; }
}