# **Context:** Column API for table schema spec: Used to create a typed column object for a table schema. This group of API is working closely with the Table API to create table schema property.

```typescript
// ─── `maxLength` — applies to EVERY column type below ───
// Type is `number | string`. There is NO SDK-applied default (the pre-4.10.1 docs claimed 40; that claim
// was removed). If you omit `maxLength`, nothing is written and the column falls back to the instance's
// own install-time default for that internal type. Set it explicitly whenever the length matters.

// ─── `hint`, `help`, `plural` — column-level documentation, applies to EVERY column type below ───
// Optional strings on every Column config (hint: verbose description, help: help text, plural: plural label).
// They are written to the column's `sys_documentation` record(s). Before SDK v4.12.1 the build silently DROPPED the
// column-level values; from v4.12.1 they land, as the default for every language entry. A `label: Documentation[]`
// entry that sets its own hint/help/plural overrides the column-level value for that language.
//   e.g. StringColumn({ label: 'Key', hint: 'Correlation key from the source system', help: 'Set by the integration', plural: 'Keys' })

// ─── `createRoles`, `readRoles`, `writeRoles`, `deleteRoles` (SDK v4.14.0+) — applies to EVERY column type below ───
// Optional `(string | Role)[]` on the base Column config (NOT on OverrideColumn). Field-level role lists written to
// sys_dictionary.create_roles / read_roles / write_roles / delete_roles as comma-separated role NAMES (a `Role()` record
// resolves to its `name`). Use ONE array entry per role: a role string containing a comma (e.g. 'admin,itil') is a
// build ERROR (TS11). Since v4.14.0 every column is written with these four attributes, empty when unset.
//   e.g. StringColumn({ label: 'Salary band', readRoles: [managerRole, 'itil'], writeRoles: [managerRole] })

// ─── `array`, `arrayDenormalized` — applies to EVERY column type below ───
// `array?: boolean` creates an off-row array table that stores the field's values.
// `arrayDenormalized?: boolean` (SDK v4.14.0+) keeps that off-row array table AND also stores the values on the parent
// row as a comma-separated string (bootstrap `array="denormalized"`, sys_dictionary `array_denormalized=true`).
// ALWAYS set it together with `array: true`. The type does not require it, and omitting `array` is only a build HINT that
// `now-sdk build` never prints - the bootstrap still writes `array="denormalized"`, but the sys_dictionary record gets the
// contradictory pair `array=false` + `array_denormalized=true`.
//   e.g. tags: StringColumn({ label: 'Tags', array: true, arrayDenormalized: true })

// Creates a new Column (`sys_dictionary`)
StringColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): StringColumn // returns a StringColumn object

BooleanColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string | boolean
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): BooleanColumn // returns an BooleanColumn object

ChoiceColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string | number
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): ChoiceColumn // returns a ChoiceColumn object

// ─── Choice values (`choices`) — applies to ChoiceColumn and any column exposing `choices` ───
// `choices` is `Record<string | number, string | ChoiceConfig | ChoiceConfig[]>`. Each KEY is the STORED value; the value is:
//   • a plain label string, e.g. { 1: 'High' }
//   • a ChoiceConfig object: { label: 'High', sequence?: number, hint?: string, inactive?: boolean, dependentValue?: string | number, inactiveOnUpdate?: boolean, synonyms?: string[] }
//   • an ARRAY of ChoiceConfig — produces MULTIPLE `sys_choice` records for the same stored value. Use this to supply
//     labels in MULTIPLE LANGUAGES (SDK v4.9.0+) via the `language` key, or to define dependent-value variants:
//       choices: { 1: [ { label: 'Critical', sequence: 1, language: 'en' }, { label: 'Critique', sequence: 1, language: 'fr' } ] }
//   `language` is a BCP 47 tag (e.g. 'en', 'fr'); defaults to the project's `defaultLanguage` in now.config.json.

ReferenceColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 cascadeRule: 'none', // "none" | "cascade" | "delete_no_workflow" | "delete" | "restrict" | "clear" - what happens to records that reference a record when that record is deleted
 default: '', // undefined | string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false, // boolean
 referenceTable: '', // undefined | string, optional
 referenceKey: '', // string, optional - a field on the REFERENCED table to store in the database INSTEAD OF sys_id; the field must be unique and required on the referenced table (e.g. 'email' for sys_user)
 referenceQual: '', // string, optional - filter the reference based on a filter condition or a referenced value. Mutually exclusive with dynamicRefQual
 referenceQualCondition: '', // string, optional (SDK v4.14.0+) - the condition-builder value of the reference qualifier, i.e. the 'simple' slot (an encoded query such as 'active=true^EQ'), written to sys_dictionary.reference_qual_condition. It does NOT change the derived mode: `dynamicRefQual` still implies 'dynamic' and `referenceQual` 'advanced', else 'simple'. The snake_case spelling `reference_qual_condition` is NOT an alias - it is silently dropped
 useReferenceQualifier: 'simple', // 'simple' | 'dynamic' | 'advanced', optional - the type of reference qualifier applied to the field
 dynamicRefQual: '', // string | Record<'sys_filter_option_dynamic'>, optional - dynamic reference qualifier, use with useReferenceQualifier: 'dynamic'. Mutually exclusive with referenceQual
 referenceFloats: false, // boolean, optional - the referenced table's form gets an "edit" button in the related list for the current table
 dynamicCreation: false, // boolean, optional - if no reference is found for the field, allow creation of that target record
 dynamicCreationScript: '', // string, optional - populate the new record from the reference field based on the field value
 mtom: '', // string, optional (SDK v4.10.1+) - creates a MANY-TO-MANY relationship; the value is the relationship label displayed as a related list on the referenced table (e.g. 'Members'). Generates a `sys_collection` entry when the bootstrap XML is processed by the platform. Applicable only for ServiceNow scoped applications; for all other scoped applications define many-to-many relationships using the `sys_m2m` table instead
}): ReferenceColumn // returns a ReferenceColumn object

// ─── WARNING: `referenceKey` vs `mtom` (SEMANTIC CHANGE in SDK v4.10.1) ───
// Pre-4.10.1 guidance CONFLATED these two properties: `referenceKey` used to be documented as
// "sets up a many-to-many relationship; the value is the label describing the relationship".
// That is NO LONGER TRUE. As of SDK v4.10.1 the two are distinct:
//   • `mtom`         → many-to-many relationship; value is the related-list LABEL (e.g. 'Members'). ← use this for m2m
//   • `referenceKey` → stores a FIELD VALUE from the referenced table in place of sys_id (e.g. 'email'). NOT m2m.
// Do not reuse older snippets that pass a relationship label to `referenceKey`.
// The snake_case aliases `reference_key`, `reference_qual`, `reference_floats`, `dynamic_creation_script`
// and `dyamic_creation` are deprecated — use the camelCase names above (the two spellings are mutually exclusive).

DateTimeColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DateTimeColumn // returns a DateTimeColumn object

DateColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DateColumn // returns a DateColumn object

IntegerColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 max: 0, // number
 maxLength: 0, // number | string (no SDK default)
 min: 0, // number
 readOnly: false // boolean
}): IntegerColumn // returns an IntegerColumn object

DecimalColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string | number
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DecimalColumn // returns a DecimalColumn object

ListColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // undefined | string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false, // boolean
 referenceTable: '', // undefined | string, optional - table containing the possible values (reference-based list)
 choices: {}, // object, optional - choice values for a choice-based list, e.g. { choice_1: { label: 'Choice1' } }
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none', optional - how the choices display
 useReferenceQualifier: 'simple', // 'simple' | 'dynamic' | 'advanced', optional - reference qualifier mode: 'simple' with an encoded query, 'advanced' with a `javascript:` qualifier, 'dynamic' with dynamicRefQual
 referenceQual: '', // string, optional - encoded query (e.g. 'active=true') or `javascript:` expression for the reference picker. Mutually exclusive with dynamicRefQual
 dynamicRefQual: '', // string | Record<'sys_filter_option_dynamic'>, optional - dynamic reference qualifier, use with useReferenceQualifier: 'dynamic'. Mutually exclusive with referenceQual
 referenceQualCondition: '', // string, optional (SDK v4.14.0+) - condition-builder value of the reference qualifier, written to sys_dictionary.reference_qual_condition (same semantics as on ReferenceColumn)
}): ListColumn // returns a ListColumn object

FieldNameColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): FieldNameColumn // returns a FieldNameColumn object

ScriptColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // undefined | string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false, // boolean
 signature: '', // undefined | string, optional
}): ScriptColumn // returns a ScriptColumn object

UserRolesColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string | Role object see spec
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): UserRolesColumn // returns a UserRolesColumn object

TranslatedTextColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): TranslatedTextColumn // returns a TranslatedTextColumn object

ConditionsColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // undefined | string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): ConditionsColumn // returns a ConditionsColumn object

TranslatedFieldColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): TranslatedFieldColumn // returns a TranslatedFieldColumn object

BasicImageColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): BasicImageColumn // returns a BasicImageColumn object

IntegerDateColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string | number
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): IntegerDateColumn // returns a IntegerDateColumn object

VersionColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): VersionColumn // returns a VersionColumn object

BasicDateTimeColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): BasicDateTimeColumn // returns a BasicDateTimeColumn object

CalendarDateTime({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): CalendarDateTime // returns a CalendarDateTime object

DueDateColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DueDateColumn // returns a DueDateColumn object

ScheduleDateTimeColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): ScheduleDateTimeColumn // returns a ScheduleDateTimeColumn object

OtherDateColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): OtherDateColumn // returns a OtherDateColumn object

RadioColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): RadioColumn // returns a RadioColumn object

DomainIdColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string — value type is Record<'domain'> | 'global' | string (the plain-string escape hatch is SDK v4.13.0+)
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DomainIdColumn // returns an DomainIdColumn object

DomainPathColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DomainPathColumn // returns a DomainPathColumn object

TableNameColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string | (string & {})
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): TableNameColumn // returns a TableNameColumn object

SystemClassNameColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples  
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): SystemClassNameColumn // returns a SystemClassNameColumn object

DocumentIdColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 dependent: {}, // object TableNameColumn see above spec
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DocumentIdColumn // returns a DocumentIdColumn object

Password2Column({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): Password2Column // returns a Password2Column object

GuidColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default), typically 32 or 36 for GUIDs
 readOnly: false // boolean
}): GuidColumn // returns a GuidColumn object

JsonColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string, use json() helper for objects e.g. json({ theme: 'dark' })
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): JsonColumn // returns a JsonColumn object

NameValuePairsColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string, use nameValuePairs() helper for objects e.g. nameValuePairs({ key: 'value' })
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): NameValuePairsColumn // returns a NameValuePairsColumn object for flat key-value pair storage

UrlColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string — http:// or https:// is autocompleted, but any string is accepted (SDK v4.12.0+), including relative values such as 'sn_appstore_store.do'
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): UrlColumn // returns a UrlColumn object

EmailColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 choices: {}, // object, snake_case name value pairs, for example { choice_1: { label: 'Choice1' }, choice_2: { label: 'Choice2' } }
 default: '', // string, should follow user@domain format
 dropdown: 'none', // 'none' | 'dropdown_with_none' | 'suggestion' | 'dropdown_without_none'
 dynamicValueDefinitions: {}, // object, see dynamic_value_definition examples
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): EmailColumn // returns an EmailColumn object

HtmlColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string, use html() helper for HTML content e.g. html('<h2>Title</h2><p>Content</p>')
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): HtmlColumn // returns an HtmlColumn object

FloatColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: 0, // number
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false, // boolean
 scale: 0, // number, optional - number of decimal places to display (e.g., 2 for 99.99)
}): FloatColumn // returns a FloatColumn object

MultiLineTextColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): MultiLineTextColumn // returns a MultiLineTextColumn object for multi-line text areas

DurationColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: {}, // Duration object { days?, hours?, minutes?, seconds? } or string in ServiceNow format e.g. '1970-01-02 06:30:15'
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): DurationColumn // returns a DurationColumn object, use Duration() helper for default values

TimeColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: {}, // TimeOfDay object { hours?, minutes?, seconds? } or string in ServiceNow format e.g. '1970-01-01 17:30:00'
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): TimeColumn // returns a TimeColumn object, use Time() helper for default values

FieldListColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: [], // FieldListValue array of field names with dot-walk support, use FieldList() helper
 dependent: '', // string, required - field name of a TableNameColumn that provides the table context
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): FieldListColumn // returns a FieldListColumn object

SlushBucketColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false, // boolean
 script: '', // string, optional - script method to populate options (e.g., 'getRoles()')
}): SlushBucketColumn // returns a SlushBucketColumn object for dual-list selection interface

TemplateValueColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string or TemplateValue object, use TemplateValue() helper for type-safe values
 dependent: '', // string, required - field name of a TableNameColumn that provides the table context
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): TemplateValueColumn // returns a TemplateValueColumn object

ApprovalRulesColumn({
 active: false, // boolean
 attributes: {}, // object, snake_case name value pairs, see attribute list
 audit: false, // boolean
 default: '', // string
 functionDefinition: `glidefunction:${""}`, // string, definition of a function that the field performs, such as a mathematical operation, field length computation, or day of the week calculation
 label: '', // string or array of Documentation object
 mandatory: false, // boolean
 maxLength: 0, // number | string (no SDK default)
 readOnly: false // boolean
}): ApprovalRulesColumn // returns an ApprovalRulesColumn object for approval workflow rules

// --- Utility Helper Functions ---

// Duration helper: creates duration values for DurationColumn default
Duration({
 days: 0, // number, optional
 hours: 0, // number, optional
 minutes: 0, // number, optional
 seconds: 0, // number, optional
}) // returns a Duration value string in ServiceNow format e.g. '1970-01-02 06:30:15'

// Time helper: creates time-of-day values for TimeColumn default
Time({
 hours: 0, // number, optional
 minutes: 0, // number, optional
 seconds: 0, // number, optional
}, 'UTC') // optional second parameter: IANA timezone string (e.g., 'America/New_York', 'Europe/London', 'UTC'). Defaults to system timezone.
// returns a Time value, time is converted from specified timezone to UTC

// FieldList helper: creates type-checked field list values for FieldListColumn default
FieldList<'table_name'>(['field1', 'field2', 'field3.dot_walked_field'])
// generic table parameter provides IntelliSense for table fields with dot-walk support
// returns comma-separated string e.g. 'field1,field2,field3.dot_walked_field'

// TemplateValue helper: creates template values for TemplateValueColumn default
TemplateValue<'table_name'>({ field1: 'value1', field2: 100, field3: true })
// generic table parameter provides IntelliSense for table fields
// returns ServiceNow encoded query format e.g. 'field1=value1^field2=100^field3=true^EQ'

// --- Now.attach ---

// Now.attach: attaches an image file to a record data field (e.g. sp_portal.icon), creating sys_attachment records.
// NOT as a column `default` (e.g. BasicImageColumn): SDK 4.14.0 type-checks it but writes the literal
// `Symbol(NowAttachShape)` as the dictionary default and creates no sys_attachment
Now.attach('./images/logo.png') // returns an Image reference
// path is relative to the .now.ts file that calls it and must start with './' or '../';
// the image file must exist there at build time (else "File not found")
// Supported formats: jpg, png, bmp, gif, jpeg, ico, svg (case-insensitive)

```
