Skip to content

Instantly share code, notes, and snippets.

@Mark-McCracken
Created August 31, 2022 21:01
Show Gist options
  • Save Mark-McCracken/0fc9e17b45bd0a7f5cd6a439e42d36d1 to your computer and use it in GitHub Desktop.
Save Mark-McCracken/0fc9e17b45bd0a7f5cd6a439e42d36d1 to your computer and use it in GitHub Desktop.
example table schema
{
"$schema": "../../json_schemas/table_definition.schema.json",
"tableName": "billedusage",
"tableType": "transactional fact",
"dataset": "sid_common",
"description": "Total bill for per customer per month",
"labels": {},
"clusteringColumns": [],
"columns": [
{
"name": "subscription_id",
"type": "STRING",
"mode": "NULLABLE",
"description": "The id of the Subscription associated with the Usage.",
"foreignKey": {
"reference": "subscriptions.id",
"relationshipName": "billed usage references subscription",
"relationshipCardinality": "n,1"
},
"isPrimaryKey": false,
"piiCategory": "CustomerNumber"
},
...
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment