Path: redb/redb.Export/Flat/Model/FlatColumn.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.Export/Flat/Model/FlatColumn.cs ---- namespace redb.Export.Flat.Model; /// /// One column of a flat table, described independently of any SQL dialect: the target column type /// is chosen later from . /// public sealed class FlatColumn { /// Column name as it goes into DDL (already within the identifier limit). public string Name { get; init; } = ""; /// The part the column plays in its table. public FlatColumnRole Role { get; init; } /// /// CLR type the column carries: the property type for Props values (nullable wrappers kept), /// for keys and references. /// public Type ClrType { get; init; } = typeof(object); /// Whether the column accepts NULL. Every Props column does: an object saved before a field existed has no row for it. public bool IsNullable { get; init; } /// The _values column the value is read from; for service columns. public FlatValueSource ValueSource { get; init; } /// /// _structures._id of the field. Null for service columns, and for every column when the /// model was built without a structure tree. /// public long? StructureId { get; init; } /// For a column: the redb column it is copied from. public string? SourceColumn { get; init; } /// For one component of a tuple key: the field of the tuple (Item1, Item2, ...), as stored in the key JSON. public string? KeyComponent { get; init; } }