Snowflake · Schema

ForeignKey

Foreign keys link data in one table to the data in another table.

Data LakesData SharingData WarehousingDatabaseSQL

Properties

Name Type Description
referenced_table_name string
referenced_column_names array
View JSON Schema on GitHub

JSON Schema

snowflake-foreignkey-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ForeignKey",
  "title": "ForeignKey",
  "allOf": [
    {
      "$ref": "#/components/schemas/Constraint"
    }
  ],
  "type": "object",
  "description": "Foreign keys link data in one table to the data in another table.",
  "properties": {
    "referenced_table_name": {
      "type": "string",
      "example": "example_value"
    },
    "referenced_column_names": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": []
    }
  },
  "required": [
    "referenced_table_name"
  ]
}