namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Schemas;
///
/// A reusable, named JSON-Schema library entry (template-level JSON-Schema library).
/// Schemas are referenced from inbound-API / template schema definitions via a
/// {"$ref":"lib:Name"} pointer resolved against this library. One row per
/// named schema in the central SharedSchemas MS SQL table.
///
///
/// Persistence-ignorant POCO; the EF Core mapping lives in the Configuration Database
/// component (SharedSchemaConfiguration). Mirrors the single-table
/// entity/config/
/// repository shape — surrogate Id, a unique , and an unbounded
/// text body.
///
public class SharedSchema
{
/// Primary key.
public int Id { get; set; }
/// Unique schema name used to reference this entry (e.g. lib:Name).
public required string Name { get; set; }
///
/// Optional scope discriminator for future namespacing/visibility partitioning;
/// null means an unscoped (global) library entry.
///
public string? Scope { get; set; }
/// The JSON Schema document text.
public required string SchemaJson { get; set; }
}