Interface: DatabaseFieldDefinition
Defined in: electron/services/database/utils/dynamicSchema.ts:179
Database field definition for dynamic monitor schema.
Remarks
Used to describe dynamically generated columns for monitor types. All fields are mapped from monitor type registry definitions and used in dynamic schema generation.
Properties
columnName
columnName:
string
Defined in: electron/services/database/utils/dynamicSchema.ts:186
Column name in database (snake_case).
Remarks
Generated from the monitor type field name.
defaultValue?
optional
defaultValue:null
|string
Defined in: electron/services/database/utils/dynamicSchema.ts:195
Default value for the column.
Remarks
Always null
for dynamic fields.
Default Value
null;
monitorType
monitorType:
string
Defined in: electron/services/database/utils/dynamicSchema.ts:199
Monitor type this field belongs to.
nullable
nullable:
boolean
Defined in: electron/services/database/utils/dynamicSchema.ts:208
Whether column allows NULL values.
Remarks
All dynamic fields are nullable.
Default Value
true;
sourceField
sourceField:
string
Defined in: electron/services/database/utils/dynamicSchema.ts:212
Field name from monitor type definition (camelCase).
sqlType
sqlType:
string
Defined in: electron/services/database/utils/dynamicSchema.ts:219
SQL data type for the column.
Remarks
Determined by monitor type registry field type.