[{"data":1,"prerenderedAt":349},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fdatabase-explorer\u002Ftable-structure":3},{"id":4,"title":5,"body":6,"description":340,"extension":341,"meta":342,"navigation":343,"path":344,"redirect":345,"seo":346,"stem":347,"__hash__":348},"docs\u002Fdocs\u002Fdatabase-explorer\u002Ftable-structure.md","Examining Table Structure",{"type":7,"value":8,"toc":325},"minimark",[9,13,17,22,25,31,34,59,63,66,71,74,88,92,95,100,103,120,124,127,132,135,146,150,153,158,161,175,179,182,187,192,195,230,234,237,287,290,294],[10,11,5],"h1",{"id":12},"examining-table-structure",[14,15,16],"p",{},"The structure view provides the metadata you need before editing data, writing SQL, or configuring a stream.",[18,19,21],"h2",{"id":20},"columns-tab","Columns tab",[14,23,24],{},"The Columns tab shows the detailed shape of the selected object.",[26,27],"themed-image",{"alt":28,"dark":29,"light":30},"Table Columns Structure","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-columns-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-columns-light.png",[14,32,33],{},"Typical fields include:",[35,36,37,41,44,47,50,53,56],"ul",{},[38,39,40],"li",{},"name",[38,42,43],{},"data type",[38,45,46],{},"length or enum values where applicable",[38,48,49],{},"default value",[38,51,52],{},"nullability",[38,54,55],{},"auto-increment behavior",[38,57,58],{},"comments when available",[18,60,62],{"id":61},"keys-tab","Keys tab",[14,64,65],{},"The Keys tab surfaces relationship-critical metadata.",[26,67],{"alt":68,"dark":69,"light":70},"Table Keys","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-keys-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-keys-light.png",[14,72,73],{},"This includes:",[35,75,76,79,82,85],{},[38,77,78],{},"primary keys",[38,80,81],{},"foreign keys",[38,83,84],{},"unique constraints",[38,86,87],{},"referenced tables and actions where the engine exposes them",[18,89,91],{"id":90},"indexes-tab","Indexes tab",[14,93,94],{},"The Indexes tab helps explain access patterns and tuning assumptions.",[26,96],{"alt":97,"dark":98,"light":99},"Table Indexes","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-indexes-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-indexes-light.png",[14,101,102],{},"You can review:",[35,104,105,108,111,114,117],{},[38,106,107],{},"index name",[38,109,110],{},"index type",[38,112,113],{},"uniqueness",[38,115,116],{},"indexed columns and sort direction",[38,118,119],{},"additional metadata returned by the engine",[18,121,123],{"id":122},"triggers-tab","Triggers tab",[14,125,126],{},"The Triggers tab lists triggers defined on the selected table.",[26,128],{"alt":129,"dark":130,"light":131},"Table Triggers","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-triggers-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-triggers-light.png",[14,133,134],{},"Each trigger shows:",[35,136,137,140,143],{},[38,138,139],{},"trigger name",[38,141,142],{},"timing (BEFORE \u002F AFTER) and event (INSERT \u002F UPDATE \u002F DELETE)",[38,144,145],{},"trigger body with syntax highlighting",[18,147,149],{"id":148},"ddl-tab","DDL tab",[14,151,152],{},"The DDL tab shows the SQL definition retrieved for the selected object.",[26,154],{"alt":155,"dark":156,"light":157},"Table DDL","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-ddl-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-ddl-light.png",[14,159,160],{},"Use it to:",[35,162,163,166,169,172],{},[38,164,165],{},"validate the exact source definition before migration work",[38,167,168],{},"capture schema details for tickets or reviews",[38,170,171],{},"compare source and target structure expectations",[38,173,174],{},"copy the definition into external tooling when needed",[18,176,178],{"id":177},"file-and-s3-structure","File and S3 structure",[14,180,181],{},"When viewing a file-backed table (local files or S3), the Structure tab adapts to show file-specific metadata instead of database-specific tabs.",[26,183],{"alt":184,"dark":185,"light":186},"File structure view showing Parquet file columns and metadata","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-file-dark.png","\u002Fimages\u002Fdocs\u002Fdatabase-explorer\u002Fstructure-file-light.png",[188,189,191],"h3",{"id":190},"file-info","File info",[14,193,194],{},"The top of the Structure view shows:",[35,196,197,204,210,216],{},[38,198,199,203],{},[200,201,202],"strong",{},"Format badge"," — file format (e.g., PARQUET, CSV, JSON)",[38,205,206,209],{},[200,207,208],{},"Row and column counts"," — total rows and number of columns",[38,211,212,215],{},[200,213,214],{},"File size"," — size on disk",[38,217,218,221,222,225,226,229],{},[200,219,220],{},"File path"," — full path with ",[200,223,224],{},"Copy"," and ",[200,227,228],{},"Reveal in Folder"," buttons (local files only)",[188,231,233],{"id":232},"columns","Columns",[14,235,236],{},"File structure shows a simplified column list:",[238,239,240,253],"table",{},[241,242,243],"thead",{},[244,245,246,250],"tr",{},[247,248,249],"th",{},"Field",[247,251,252],{},"Description",[254,255,256,267,277],"tbody",{},[244,257,258,264],{},[259,260,261],"td",{},[200,262,263],{},"Column",[259,265,266],{},"Column name",[244,268,269,274],{},[259,270,271],{},[200,272,273],{},"Type",[259,275,276],{},"Inferred data type",[244,278,279,284],{},[259,280,281],{},[200,282,283],{},"Nullable",[259,285,286],{},"Whether the column allows null values",[14,288,289],{},"Keys, Indexes, and DDL tabs are not shown for file-backed tables.",[18,291,293],{"id":292},"related-docs","Related docs",[35,295,296,304,311,318],{},[38,297,298,303],{},[299,300,302],"a",{"href":301},".\u002Fviewing-data","Viewing Data"," — Data grid, sorting, filtering, export, summary",[38,305,306,310],{},[299,307,309],{"href":308},".\u002Fediting-data","Editing Data"," — Insert, update, delete with staged changes",[38,312,313,317],{},[299,314,316],{"href":315},".\u002Fsql-console","SQL Console"," — Direct and file-aware SQL",[38,319,320,324],{},[299,321,323],{"href":322},".\u002Fdatabase-diagrams","Database Diagrams"," — Interactive ER diagrams",{"title":326,"searchDepth":327,"depth":327,"links":328},"",2,[329,330,331,332,333,334,339],{"id":20,"depth":327,"text":21},{"id":61,"depth":327,"text":62},{"id":90,"depth":327,"text":91},{"id":122,"depth":327,"text":123},{"id":148,"depth":327,"text":149},{"id":177,"depth":327,"text":178,"children":335},[336,338],{"id":190,"depth":337,"text":191},3,{"id":232,"depth":337,"text":233},{"id":292,"depth":327,"text":293},"Inspect columns, keys, indexes, triggers, and DDL in Data Explorer.","md",{},false,"\u002Fdocs\u002Fdatabase-explorer\u002Ftable-structure",null,{"title":5,"description":340},"docs\u002Fdatabase-explorer\u002Ftable-structure","Qj5Bh2qz5wh-PnEpS_trn6KtKU0IUCi-ELBXfNCVQoI",1782346474454]