Path: redb/redb.Core/Query/Models/FieldInfo.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.Core/Query/Models/FieldInfo.cs
----
namespace redb.Core.Query.Models;
///
/// Metadata about a field in the PVT query.
/// Contains structure_id for SQL generation and type information for value extraction.
///
/// ID of the structure in _structures table
/// Database type name (Long, String, Boolean, etc.)
/// Column name in _values table (_Long, _String, etc.)
/// Field name as it appears in Props class
/// Whether this field is an array type
/// For ListItem fields: which property (Id, Value, Alias)
/// For Dictionary fields: the key (e.g., "home" for PhoneBook["home"])
/// For nested Dictionary fields: parent structure ID for JOIN via _array_parent_id
/// For a field of an element of an array of classes (Rows[].Kind): the
/// structure of that array. Such a field is not a pivot column; a condition reads it under the element row.
public record FieldInfo(
long StructureId,
string DbType,
string DbColumn,
string Name,
bool IsArray = false,
ListItemProperty? ListItemProp = null,
string? DictKey = null,
long? ParentStructureId = null,
long? ElementOfArrayStructureId = null
);