39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Identity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BLAIzor.Models
|
|
{
|
|
public class DesignTemplate
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
public string? TemplateName { get; set; }
|
|
|
|
public string? TemplatePhotoUrl { get; set; }
|
|
|
|
public string? Description { get; set; } // Short description
|
|
public string? Tags { get; set; } // Comma-separated tags
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
public int Version { get; set; } = 1;
|
|
public bool IsDeprecated { get; set; } = false;
|
|
|
|
public bool IsPrivate { get; set; } = false;
|
|
public bool IsPublished { get; set; } = false;
|
|
|
|
public string UserId { get; set; }
|
|
public IdentityUser User { get; set; }
|
|
public string Status { get; set; } = "Draft";
|
|
|
|
public string QDrandCollectionName { get; set; }
|
|
|
|
public ICollection<SiteInfo> Sites { get; set; } = new List<SiteInfo>();
|
|
|
|
public CssTemplate CssTemplate { get; set; }
|
|
}
|
|
}
|