mirror of
https://github.com/microsoft/HybridRow.git
synced 2025-06-07 17:00:05 +01:00
Release roll-up snapshot of C#/C++ codebase at version 1.1.0-preview. This release matches the current shipping nugets.
40 lines
1.3 KiB
JSON
40 lines
1.3 KiB
JSON
// Todo demo schema that utilizes typed maps.
|
|
{
|
|
"schemas": [
|
|
{ "name": "Movie", "id": 1, "type": "schema",
|
|
"properties": [
|
|
{ "path": "cast", "type": {
|
|
"type": "map",
|
|
"keys": { "type": "utf8", "nullable": false },
|
|
"values": { "type": "utf8", "nullable": false }
|
|
} },
|
|
{ "path": "stats", "type": {
|
|
"type": "map",
|
|
"keys": { "type": "guid", "nullable": false },
|
|
"values": { "type": "float64", "nullable": false }
|
|
} },
|
|
{ "path": "related", "type": {
|
|
"comment": "map: actor -> { map: moveId -> roleName }",
|
|
"type": "map",
|
|
"keys": { "type": "utf8", "nullable": false },
|
|
"values": {
|
|
"type": "map",
|
|
"nullable": false,
|
|
"keys": { "type": "int64", "nullable": false },
|
|
"values": { "type": "utf8", "nullable": false }
|
|
}
|
|
} },
|
|
{ "path": "revenue", "type": {
|
|
"comment": "map: releaseDate -> Earnings }",
|
|
"type": "map",
|
|
"keys": { "type": "datetime", "nullable": false },
|
|
"values": { "type": "schema", "name": "Earnings", "nullable": false }
|
|
} }
|
|
]},
|
|
{ "name": "Earnings", "id": 2, "type": "schema",
|
|
"properties": [
|
|
{ "path": "domestic", "type": { "type": "decimal", "storage": "fixed" } },
|
|
{ "path": "worldwide", "type": { "type": "decimal", "storage": "fixed" } }
|
|
]}
|
|
]
|
|
} |