CreateTableOperation

View Source

Summary

Operation that creates a new table.

Signature

type CreateTableOperation = {
  checks?: CheckConstraint[];
  columns: Record<string, ColumnDefinition>;
  comment?: string;
  foreignKeys?: ForeignKeyConstraint[];
  ifNotExists?: boolean;
  kind: "createTable";
  primaryKey?: PrimaryKeyConstraint;
  table: TableRef;
  uniques?: UniqueConstraint[];
};