MCPcopy
hub / github.com/chartdb/chartdb / createField

Function createField

src/lib/data/sql-export/__tests__/export-sql-dbml.test.ts:15–25  ·  view source on GitHub ↗
(overrides: Partial<DBField>)

Source from the content-addressed store, hash-verified

13
14 // Helper to create a field with all required properties
15 const createField = (overrides: Partial<DBField>): DBField =>
16 ({
17 id: testId(),
18 name: 'field',
19 type: { id: 'text', name: 'text' },
20 primaryKey: false,
21 nullable: true,
22 unique: false,
23 createdAt: testTime,
24 ...overrides,
25 }) as DBField;
26
27 // Helper to create a table with all required properties
28 const createTable = (overrides: Partial<DBTable>): DBTable =>

Callers 1

Calls 1

testIdFunction · 0.70

Tested by

no test coverage detected