24 lines
564 B
C#
24 lines
564 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BLAIzor.Models
|
|
{
|
|
public class CssTemplate
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public int DesignTemplateId { get; set; }
|
|
|
|
[Required]
|
|
[Column(TypeName = "nvarchar(max)")]
|
|
public string CssContent { get; set; }
|
|
|
|
public DateTime LastUpdated { get; set; } = DateTime.UtcNow;
|
|
|
|
// Navigation property
|
|
public DesignTemplate DesignTemplate { get; set; }
|
|
}
|
|
}
|