Skip to main content

Interface: DatabaseFieldDefinition

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:331

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/schema/dynamicSchema.ts:338

Column name in database (snake_case).

Remarks​

Generated from the monitor type field name.


defaultValue?​

optional defaultValue?: string | null;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:347

Default value for the column.

Remarks​

Always null for dynamic fields.

Default Value​

null;

monitorType​

monitorType: string;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:351

Monitor type this field belongs to.


nullable​

nullable: boolean;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:360

Whether column allows NULL values.

Remarks​

All dynamic fields are nullable.

Default Value​

true;

sourceField​

sourceField: string;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:364

Field name from monitor type definition (camelCase).


sqlType​

sqlType: string;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:371

SQL data type for the column.

Remarks​

Determined by monitor type registry field type.