P2/domain_model.json
epoch 1
{
"database": "inst-51a110a60e",
"version": 1,
"entities": {
"COMMENTS": {
"table": "comments",
"singular": "COMMENT",
"row_count": 4,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"role": "id"
},
"FILE_ID": {
"column": "file_id",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"role": "id"
},
"AUTHOR": {
"column": "author",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0
},
"RESOLVED": {
"column": "resolved",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0
},
"QUOTED_TEXT": {
"column": "quoted_text",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0
},
"TEXT": {
"column": "text",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0
},
"CREATED": {
"column": "created",
"type": "date",
"p1_distinct": 4,
"p1_nulls": 0
}
},
"label_field": "ID",
"relations": [
{
"field": "FILE_ID",
"references": "FILES"
}
]
},
"DRIVES": {
"table": "drives",
"singular": "DRIVE",
"row_count": 1,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 1,
"p1_nulls": 0,
"role": "id"
},
"NAME": {
"column": "name",
"type": "string",
"p1_distinct": 1,
"p1_nulls": 0,
"role": "name"
},
"DRIVE_KIND": {
"column": "drive_kind",
"type": "string",
"p1_distinct": 1,
"p1_nulls": 0
},
"CREATED": {
"column": "created",
"type": "date",
"p1_distinct": 1,
"p1_nulls": 0
}
},
"label_field": "NAME",
"relations": []
},
"FILES": {
"table": "files",
"singular": "FILE",
"row_count": 20,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 20,
"p1_nulls": 0,
"role": "id"
},
"DRIVE_ID": {
"column": "drive_id",
"type": "string",
"p1_distinct": 1,
"p1_nulls": 0,
"role": "id"
},
"PARENT_ID": {
"column": "parent_id",
"type": "string",
"p1_distinct": 7,
"p1_nulls": 1,
"role": "id"
},
"PATH": {
"column": "path",
"type": "string",
"p1_distinct": 20,
"p1_nulls": 0
},
"NAME": {
"column": "name",
"type": "string",
"p1_distinct": 19,
"p1_nulls": 0,
"role": "name"
},
"DEPTH": {
"column": "depth",
"type": "integer",
"p1_distinct": 4,
"p1_nulls": 0
},
"IS_FOLDER": {
"column": "is_folder",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"no",
"yes"
]
},
"ITEM_KIND": {
"column": "item_kind",
"type": "string",
"p1_distinct": 5,
"p1_nulls": 0,
"enum_values": [
"document",
"folder",
"image",
"pdf",
"spreadsheet"
]
},
"MIME_TYPE": {
"column": "mime_type",
"type": "string",
"p1_distinct": 5,
"p1_nulls": 0,
"enum_values": [
"application/pdf",
"application/vnd.google-apps.document",
"application/vnd.google-apps.folder",
"application/vnd.google-apps.spreadsheet",
"image/png"
]
},
"SIZE_BYTES": {
"column": "size_bytes",
"type": "integer",
"p1_distinct": 3,
"p1_nulls": 17
},
"OWNER_EMAIL": {
"column": "owner_email",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"enum_values": [
"alice@acme.com",
"bob@acme.com",
"carol@acme.com"
]
},
"CREATED": {
"column": "created",
"type": "date",
"p1_distinct": 20,
"p1_nulls": 0
},
"MODIFIED": {
"column": "modified",
"type": "date",
"p1_distinct": 13,
"p1_nulls": 0
},
"MODIFIED_BY": {
"column": "modified_by",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"enum_values": [
"alice@acme.com",
"bob@acme.com",
"carol@acme.com",
"dana@vendor.io"
]
},
"TRASHED": {
"column": "trashed",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"no",
"yes"
]
},
"STARRED": {
"column": "starred",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"no",
"yes"
]
},
"NAME_IS_UNIQUE": {
"column": "name_is_unique",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"role": "name"
},
"WORD_COUNT": {
"column": "word_count",
"type": "integer",
"p1_distinct": 11,
"p1_nulls": 8
},
"SECTION_COUNT": {
"column": "section_count",
"type": "integer",
"p1_distinct": 5,
"p1_nulls": 8
},
"CONTENT_HASH": {
"column": "content_hash",
"type": "string",
"p1_distinct": 12,
"p1_nulls": 8
},
"EXTRACT_STATUS": {
"column": "extract_status",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"enum_values": [
"exported_no_size",
"extracted",
"not_applicable",
"unsupported_type"
]
},
"WEB_VIEW_LINK": {
"column": "web_view_link",
"type": "string",
"p1_distinct": 20,
"p1_nulls": 0
},
"LINK_VISIBILITY": {
"column": "link_visibility",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"anyone_with_link",
"domain"
]
},
"SHARED_EXTERNALLY": {
"column": "shared_externally",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"no",
"yes"
]
}
},
"label_field": "NAME",
"relations": [
{
"field": "DRIVE_ID",
"references": "DRIVES"
}
]
},
"LABELS": {
"table": "labels",
"singular": "LABEL",
"row_count": 4,
"fields": {
"FILE_ID": {
"column": "file_id",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"role": "id"
},
"LABEL": {
"column": "label",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0
},
"VALUE": {
"column": "value",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0
}
},
"label_field": "FILE_ID",
"relations": [
{
"field": "FILE_ID",
"references": "FILES"
}
]
},
"LINKS": {
"table": "links",
"singular": "LINK",
"row_count": 4,
"fields": {
"SRC_FILE_ID": {
"column": "src_file_id",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"role": "id"
},
"DST_FILE_ID": {
"column": "dst_file_id",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"role": "id"
},
"LINK_TYPE": {
"column": "link_type",
"type": "string",
"p1_distinct": 1,
"p1_nulls": 0
}
},
"label_field": "SRC_FILE_ID",
"relations": []
},
"PERMISSIONS": {
"table": "permissions",
"singular": "PERMISSION",
"row_count": 31,
"fields": {
"FILE_ID": {
"column": "file_id",
"type": "string",
"p1_distinct": 20,
"p1_nulls": 0,
"role": "id"
},
"PRINCIPAL": {
"column": "principal",
"type": "string",
"p1_distinct": 7,
"p1_nulls": 0,
"enum_values": [
"acme.com",
"alice@acme.com",
"anyone",
"bob@acme.com",
"carol@acme.com",
"dana@vendor.io",
"eng@acme.com"
],
"role": "name"
},
"PRINCIPAL_TYPE": {
"column": "principal_type",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"enum_values": [
"anyone",
"domain",
"group",
"user"
]
},
"ROLE": {
"column": "role",
"type": "string",
"p1_distinct": 5,
"p1_nulls": 0,
"enum_values": [
"commenter",
"organizer",
"owner",
"reader",
"writer"
]
},
"INHERITED": {
"column": "inherited",
"type": "string",
"p1_distinct": 2,
"p1_nulls": 0,
"enum_values": [
"no",
"yes"
]
}
},
"label_field": "FILE_ID",
"relations": [
{
"field": "FILE_ID",
"references": "FILES"
},
{
"field": "PRINCIPAL",
"references": "PRINCIPALS"
}
]
},
"PRINCIPALS": {
"table": "principals",
"singular": "PRINCIPAL",
"row_count": 7,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 7,
"p1_nulls": 0,
"role": "id"
},
"PRINCIPAL_TYPE": {
"column": "principal_type",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0
},
"DOMAIN": {
"column": "domain",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"enum_values": [
"*",
"acme.com",
"vendor.io"
]
}
},
"label_field": "ID",
"relations": []
},
"REVISIONS": {
"table": "revisions",
"singular": "REVISION",
"row_count": 8,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 8,
"p1_nulls": 0,
"role": "id"
},
"FILE_ID": {
"column": "file_id",
"type": "string",
"p1_distinct": 4,
"p1_nulls": 0,
"role": "id"
},
"REVISION_ID": {
"column": "revision_id",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"role": "id"
},
"MODIFIED": {
"column": "modified",
"type": "date",
"p1_distinct": 8,
"p1_nulls": 0
},
"MODIFIED_BY": {
"column": "modified_by",
"type": "string",
"p1_distinct": 3,
"p1_nulls": 0,
"enum_values": [
"alice@acme.com",
"bob@acme.com",
"carol@acme.com"
]
},
"SIZE_BYTES": {
"column": "size_bytes",
"type": "integer",
"p1_distinct": 1,
"p1_nulls": 7
}
},
"label_field": "ID",
"relations": [
{
"field": "FILE_ID",
"references": "FILES"
}
]
},
"SECTIONS": {
"table": "sections",
"singular": "SECTION",
"row_count": 36,
"fields": {
"ID": {
"column": "id",
"type": "string",
"p1_distinct": 36,
"p1_nulls": 0,
"role": "id"
},
"FILE_ID": {
"column": "file_id",
"type": "string",
"p1_distinct": 12,
"p1_nulls": 0,
"role": "id"
},
"SECTION_INDEX": {
"column": "section_index",
"type": "integer",
"p1_distinct": 5,
"p1_nulls": 0
},
"HEADING": {
"column": "heading",
"type": "string",
"p1_distinct": 35,
"p1_nulls": 0
},
"LEVEL": {
"column": "level",
"type": "integer",
"p1_distinct": 2,
"p1_nulls": 0
},
"CHAR_START": {
"column": "char_start",
"type": "integer",
"p1_distinct": 22,
"p1_nulls": 0
},
"CHAR_END": {
"column": "char_end",
"type": "integer",
"p1_distinct": 33,
"p1_nulls": 0
},
"WORD_COUNT": {
"column": "word_count",
"type": "integer",
"p1_distinct": 15,
"p1_nulls": 0
},
"TEXT": {
"column": "text",
"type": "string",
"p1_distinct": 27,
"p1_nulls": 9
}
},
"label_field": "ID",
"relations": [
{
"field": "FILE_ID",
"references": "FILES"
}
]
}
},
"vocabulary": {
"DOCS": {
"kind": "entity",
"target": "FILES"
}
},
"derived_products": [
{
"name": "DEPTH_BY_IS_FOLDER",
"entity": "FILES",
"dsl": "SUM FILES DEPTH BY IS_FOLDER"
},
{
"name": "DEPTH_BY_ITEM_KIND",
"entity": "FILES",
"dsl": "SUM FILES DEPTH BY ITEM_KIND"
},
{
"name": "SIZE_BYTES_BY_IS_FOLDER",
"entity": "FILES",
"dsl": "SUM FILES SIZE_BYTES BY IS_FOLDER"
},
{
"name": "SIZE_BYTES_BY_ITEM_KIND",
"entity": "FILES",
"dsl": "SUM FILES SIZE_BYTES BY ITEM_KIND"
},
{
"name": "SIZE_BYTES_BY_MODIFIED_BY",
"entity": "REVISIONS",
"dsl": "SUM REVISIONS SIZE_BYTES BY MODIFIED_BY"
}
],
"resolution_candidates": [
{
"entity": "DRIVES",
"field": "NAME"
},
{
"entity": "FILES",
"field": "NAME"
},
{
"entity": "FILES",
"field": "NAME_IS_UNIQUE"
},
{
"entity": "PERMISSIONS",
"field": "PRINCIPAL"
}
]
}
Back to instance