20 lines
471 B
C#
20 lines
471 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AuthorBuddy.Web.Data;
|
|
|
|
[Table("Projects")]
|
|
public class ProjectEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string RootPath { get; set; } = string.Empty;
|
|
|
|
public DateTime? LastOpened { get; set; }
|
|
}
|