Path: redb/redb.Templates/templates/redb-console/Models/Product.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-console/Models/Product.cs ---- using redb.Core.Attributes; namespace RedbApp.Models; /// /// Example product with typed Props. /// RedBase stores each property in a real typed column — not JSON. /// [RedbScheme("Product")] public class Product { public decimal Price { get; set; } public string Category { get; set; } = string.Empty; public bool InStock { get; set; } public string[] Tags { get; set; } = []; } /// /// Category tree node. /// Use CreateChildAsync to build hierarchies. /// RedBase stores parent-child via _id_parent FK with ON DELETE CASCADE. /// [RedbScheme("Category")] public class Category { public int SortOrder { get; set; } }