This commit is contained in:
2025-12-26 16:40:32 +03:00
commit 4f1be2c3db
37 changed files with 2222 additions and 0 deletions

23
Models/Tree.cs Normal file
View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace public_valetax.Models
{
[Table("trees")]
public class Tree
{
[Key]
[Column("id")]
public long Id { get; set; }
[Required]
[Column("name")]
public string Name { get; set; } = string.Empty;
[Column("created_at")]
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
// Navigation property
public ICollection<Node> Nodes { get; set; } = [];
}
}