MCPcopy
hub / github.com/chartdb/chartdb / createDiagram

Function createDiagram

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

Source from the content-addressed store, hash-verified

40
41 // Helper to create a diagram with all required properties
42 const createDiagram = (overrides: Partial<Diagram>): Diagram =>
43 ({
44 id: testId(),
45 name: 'diagram',
46 databaseType: DatabaseType.GENERIC,
47 tables: [],
48 relationships: [],
49 createdAt: testTime,
50 updatedAt: testTime,
51 ...overrides,
52 }) as Diagram;
53
54 describe('Composite Primary Keys', () => {
55 it('should handle tables with composite primary keys correctly', () => {

Callers 1

Calls 1

testIdFunction · 0.70

Tested by

no test coverage detected