Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemas/northwind pg #611

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions schemas/com.northwind.postgresql/order_details/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for the Northwind PostgreSQL order_details table, see https://code.google.com/archive/p/northwindextended/downloads",
"self": {
"vendor": "com.northwind.postgresql",
"name": "order_details",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"OrderID": {
"type": "integer",
"maximum": 32767,
"minimum": -32768
},
"ProductID": {
"type": "integer",
"maximum": 32767,
"minimum": -32768
},
"UnitPrice": {
"type": "number"
},
"Quantity": {
"type": "integer",
"maximum": 32767,
"minimum": -32768
},
"Discount": {
"type": "number"
}
},
"required": ["OrderID", "ProductID", "UnitPrice", "Quantity", "Discount"],
"additionalProperties": false
}
73 changes: 73 additions & 0 deletions schemas/com.northwind.postgresql/orders/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for the Northwind PostgreSQL orders table, see https://code.google.com/archive/p/northwindextended/downloads",
"self": {
"vendor": "com.northwind.postgresql",
"name": "orders",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"OrderID": {
"type": "integer",
"maximum": 32767,
"minimum": -32768
},
"CustomerID": {
"type": ["string", "null"]
},
"EmployeeID": {
"type": ["number", "null"],
"maximum": 32767,
"minimum": -32768
},
"OrderDate": {
"type": ["string", "null"],
"format": "date"
},
"RequiredDate": {
"type": ["string", "null"],
"format": "date"
},
"ShippedDate": {
"type": ["string", "null"],
"format": "date"
},
"ShipVia": {
"type": ["number", "null"],
"maximum": 32767,
"minimum": -32768
},
"Freight": {
"type": ["number", "null"]
},
"ShipName": {
"type": ["string", "null"],
"maxLength": 40
},
"ShipAddress": {
"type": ["string", "null"],
"maxLength": 60
},
"ShipCity": {
"type": ["string", "null"],
"maxLength": 15
},
"ShipRegion": {
"type": ["string", "null"],
"maxLength": 15
},
"ShipPostalCode": {
"type": ["string", "null"],
"maxLength": 10
},
"ShipCountry": {
"type": ["string", "null"],
"maxLength": 15
}
},
"required": ["OrderID"],
"additionalProperties": false
}
15 changes: 15 additions & 0 deletions schemas/org.postgresql.snowplow.cdc/table_delete/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Postgresql DELETE table event, for Snowplow CDC",
"self": {
"vendor": "org.postgresql.snowplow.cdc",
"name": "table_delete",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
},
"additionalProperties": false
}
15 changes: 15 additions & 0 deletions schemas/org.postgresql.snowplow.cdc/table_insert/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Postgresql INSERT table event, for Snowplow CDC",
"self": {
"vendor": "org.postgresql.snowplow.cdc",
"name": "table_insert",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
},
"additionalProperties": false
}
15 changes: 15 additions & 0 deletions schemas/org.postgresql.snowplow.cdc/table_update/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Postgresql UPDATE table event, for Snowplow CDC",
"self": {
"vendor": "org.postgresql.snowplow.cdc",
"name": "table_update",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
},
"additionalProperties": false
}