MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / idColumn

Function idColumn

packages/core/fumadb/src/schema/create.ts:509–518  ·  view source on GitHub ↗
(
  name: string | Partial<NameVariants>,
  type: Type
)

Source from the content-addressed store, hash-verified

507}
508
509export function idColumn<Type extends IdColumnType>(
510 name: string | Partial<NameVariants>,
511 type: Type
512): IdColumn<Type, TypeMap[Type], TypeMap[Type]> {
513 return new IdColumn(type, (ormName) =>
514 typeof name === "string"
515 ? nameVariants(name, ormName)
516 : nameVariants(ormName, ormName, name)
517 );
518}
519
520export type RelationType = "many" | "one";
521

Callers 15

unscopedExecutorTableFunction · 0.90
tenantExecutorTableFunction · 0.90
ownedExecutorTableFunction · 0.90
uuid.test.tsFile · 0.90
generate.test.tsFile · 0.90
migrate.test.tsFile · 0.90
cli.tsFile · 0.90
variants.schema.tsFile · 0.90
query.schema.tsFile · 0.90
generateSchemaFunction · 0.90

Calls 1

nameVariantsFunction · 0.85

Tested by

no test coverage detected