MCPcopy Index your code
hub / github.com/simstudioai/sim / createTableColumn

Function createTableColumn

packages/testing/src/factories/table.factory.ts:40–47  ·  view source on GitHub ↗
(options: TableColumnFactoryOptions = {})

Source from the content-addressed store, hash-verified

38 * Creates a table column fixture with sensible defaults.
39 */
40export function createTableColumn(options: TableColumnFactoryOptions = {}): TableColumnFixture {
41 return {
42 name: options.name ?? `column_${generateShortId(6, COLUMN_SUFFIX_ALPHABET)}`,
43 type: options.type ?? 'string',
44 required: options.required,
45 unique: options.unique,
46 }
47}
48
49/**
50 * Creates a table row fixture with sensible defaults.

Callers 1

Calls 1

generateShortIdFunction · 0.90

Tested by

no test coverage detected