[{"data":1,"prerenderedAt":3238},["ShallowReactive",2],{"navigation_docs_en":3,"-en-reference-api-reference-schema-migration-operation-reference":297,"-en-reference-api-reference-schema-migration-operation-reference-surround":3233},[4,30,68,103,187,287],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fen\u002Fgetting-started","en\u002F1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F1.getting-started\u002F2.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Quickstart","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F1.getting-started\u002F3.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Use Cases","\u002Fen\u002Fgetting-started\u002Fuse-cases","en\u002F1.getting-started\u002F4.use-cases","i-lucide-layers",{"title":26,"path":27,"stem":28,"icon":29},"Concepts","\u002Fen\u002Fgetting-started\u002Fconcepts","en\u002F1.getting-started\u002F5.concepts","i-lucide-book",{"title":26,"path":31,"stem":32,"children":33,"page":6},"\u002Fen\u002Fconcepts","en\u002F2.concepts",[34,38,43,48,53,58,63],{"title":35,"path":36,"stem":37,"icon":14},"Organization","\u002Fen\u002Fconcepts\u002Forganization","en\u002F2.concepts\u002F1.organization",{"title":39,"path":40,"stem":41,"icon":42},"Data Model","\u002Fen\u002Fconcepts\u002Fdata-model","en\u002F2.concepts\u002F2.data-model","i-lucide-database",{"title":44,"path":45,"stem":46,"icon":47},"Access Control","\u002Fen\u002Fconcepts\u002Faccess-permissions","en\u002F2.concepts\u002F3.access-permissions","i-lucide-user-key",{"title":49,"path":50,"stem":51,"icon":52},"Audit Logs","\u002Fen\u002Fconcepts\u002Faudit-logs","en\u002F2.concepts\u002F4.audit-logs","i-lucide-scroll-text",{"title":54,"path":55,"stem":56,"icon":57},"Introspection","\u002Fen\u002Fconcepts\u002Fintrospection","en\u002F2.concepts\u002F6.introspection","i-lucide-database-search",{"title":59,"path":60,"stem":61,"icon":62},"Query Engine","\u002Fen\u002Fconcepts\u002Fquery-engine","en\u002F2.concepts\u002F7.query-engine","i-lucide-workflow",{"title":64,"path":65,"stem":66,"icon":67},"AI","\u002Fen\u002Fconcepts\u002Fai","en\u002F2.concepts\u002F8.ai","i-lucide-sparkles",{"title":69,"path":70,"stem":71,"children":72,"page":6},"Guides","\u002Fen\u002Fguides","en\u002F4.guides",[73,78,83,88,93,98],{"title":74,"path":75,"stem":76,"icon":77},"Build an Application with AI Assistance","\u002Fen\u002Fguides\u002Fbuild-an-application","en\u002F4.guides\u002F1.build-an-application","i-lucide-route",{"title":79,"path":80,"stem":81,"icon":82},"REST API Quickstart","\u002Fen\u002Fguides\u002Frest-api","en\u002F4.guides\u002F1.rest-api","i-lucide-plug",{"title":84,"path":85,"stem":86,"icon":87},"SDK Quickstart","\u002Fen\u002Fguides\u002Fsdk","en\u002F4.guides\u002F2.sdk","i-lucide-terminal",{"title":89,"path":90,"stem":91,"icon":92},"Configure SSO","\u002Fen\u002Fguides\u002Fconfigure-sso","en\u002F4.guides\u002F3.configure-sso","i-lucide-key-round",{"title":94,"path":95,"stem":96,"icon":97},"Configure MCP","\u002Fen\u002Fguides\u002Fmcp","en\u002F4.guides\u002F4.mcp","i-lucide-brain-cog",{"title":99,"path":100,"stem":101,"icon":102},"Customize Content Space","\u002Fen\u002Fguides\u002Fcustomize-content-space","en\u002F4.guides\u002F5.customize-content-space","i-lucide-columns-3-cog",{"title":104,"path":105,"stem":106,"children":107,"page":6},"Developer","\u002Fen\u002Fdeveloper","en\u002F5.developer",[108,163],{"title":109,"path":110,"stem":111,"children":112,"page":6},"Data Access","\u002Fen\u002Fdeveloper\u002Fapi","en\u002F5.developer\u002F1.api",[113,118,123,128,133,138,143,148,153,158],{"title":114,"path":115,"stem":116,"icon":117},"Overview","\u002Fen\u002Fdeveloper\u002Fapi\u002Foverview","en\u002F5.developer\u002F1.api\u002F1.overview","i-lucide-globe",{"title":119,"path":120,"stem":121,"icon":122},"Errors","\u002Fen\u002Fdeveloper\u002Fapi\u002Ferrors","en\u002F5.developer\u002F1.api\u002F10.errors","i-lucide-alert-triangle",{"title":124,"path":125,"stem":126,"icon":127},"Authentication","\u002Fen\u002Fdeveloper\u002Fapi\u002Fauthentication","en\u002F5.developer\u002F1.api\u002F2.authentication","i-lucide-lock",{"title":129,"path":130,"stem":131,"icon":132},"Reading Data","\u002Fen\u002Fdeveloper\u002Fapi\u002Freading-data","en\u002F5.developer\u002F1.api\u002F3.reading-data","i-lucide-book-open",{"title":134,"path":135,"stem":136,"icon":137},"Writing Data","\u002Fen\u002Fdeveloper\u002Fapi\u002Fwriting-data","en\u002F5.developer\u002F1.api\u002F4.writing-data","i-lucide-pencil",{"title":139,"path":140,"stem":141,"icon":142},"Filtering","\u002Fen\u002Fdeveloper\u002Fapi\u002Ffiltering","en\u002F5.developer\u002F1.api\u002F5.filtering","i-lucide-filter",{"title":144,"path":145,"stem":146,"icon":147},"Field Selection","\u002Fen\u002Fdeveloper\u002Fapi\u002Ffield-selection","en\u002F5.developer\u002F1.api\u002F6.field-selection","i-lucide-list-checks",{"title":149,"path":150,"stem":151,"icon":152},"Sorting & Pagination","\u002Fen\u002Fdeveloper\u002Fapi\u002Fsorting-pagination","en\u002F5.developer\u002F1.api\u002F7.sorting-pagination","i-lucide-arrow-up-down",{"title":154,"path":155,"stem":156,"icon":157},"Relational Data","\u002Fen\u002Fdeveloper\u002Fapi\u002Frelational-data","en\u002F5.developer\u002F1.api\u002F8.relational-data","i-lucide-network",{"title":159,"path":160,"stem":161,"icon":162},"Files & Assets","\u002Fen\u002Fdeveloper\u002Fapi\u002Ffiles","en\u002F5.developer\u002F1.api\u002F9.files","i-lucide-file-up",{"title":164,"path":165,"stem":166,"children":167,"page":6},"Client SDK","\u002Fen\u002Fdeveloper\u002Fsdk","en\u002F5.developer\u002F2.sdk",[168,172,177,182],{"title":169,"path":170,"stem":171,"icon":19},"Installation","\u002Fen\u002Fdeveloper\u002Fsdk\u002Finstallation","en\u002F5.developer\u002F2.sdk\u002F1.installation",{"title":173,"path":174,"stem":175,"icon":176},"Client Setup","\u002Fen\u002Fdeveloper\u002Fsdk\u002Fclient-setup","en\u002F5.developer\u002F2.sdk\u002F2.client-setup","i-lucide-settings",{"title":178,"path":179,"stem":180,"icon":181},"Type System","\u002Fen\u002Fdeveloper\u002Fsdk\u002Ftype-system","en\u002F5.developer\u002F2.sdk\u002F3.type-system","i-lucide-braces",{"title":183,"path":184,"stem":185,"icon":186},"Advanced","\u002Fen\u002Fdeveloper\u002Fsdk\u002Fadvanced","en\u002F5.developer\u002F2.sdk\u002F5.advanced","i-lucide-puzzle",{"title":188,"path":189,"stem":190,"children":191,"page":6},"Reference","\u002Fen\u002Freference","en\u002F6.reference",[192,196,212,216,221,258],{"title":193,"path":194,"stem":195,"icon":176},"Configuration","\u002Fen\u002Freference\u002Fenvironment-variables","en\u002F6.reference\u002F1.environment-variables",{"title":197,"path":198,"stem":199,"children":200,"icon":82},"Connectors","\u002Fen\u002Freference\u002Fconnectors","en\u002F6.reference\u002F2.connectors\u002Findex",[201,202,207],{"title":197,"path":198,"stem":199,"icon":82},{"title":203,"path":204,"stem":205,"icon":206},"PostgreSQL and Supabase","\u002Fen\u002Freference\u002Fconnectors\u002Fpostgresql-supabase","en\u002F6.reference\u002F2.connectors\u002F1.postgresql-supabase","i-simple-icons-postgresql",{"title":208,"path":209,"stem":210,"icon":211},"MySQL and MariaDB","\u002Fen\u002Freference\u002Fconnectors\u002Fmysql-mariadb","en\u002F6.reference\u002F2.connectors\u002F2.mysql-mariadb","i-simple-icons-mysql",{"title":213,"path":214,"stem":215,"icon":181},"Data Types Representation","\u002Fen\u002Freference\u002Fdata-types","en\u002F6.reference\u002F3.data-types",{"title":217,"path":218,"stem":219,"icon":220},"Permissions Reference","\u002Fen\u002Freference\u002Fpermissions","en\u002F6.reference\u002F4.permissions","i-lucide-shield",{"title":222,"path":223,"stem":224,"children":225,"page":6},"API Reference","\u002Fen\u002Freference\u002Fapi-reference","en\u002F6.reference\u002F5.api-reference",[226,231,236],{"title":227,"path":228,"stem":229,"icon":230},"System Endpoints","\u002Fen\u002Freference\u002Fapi-reference\u002Fsystem-endpoints","en\u002F6.reference\u002F5.api-reference\u002F1.system-endpoints","i-lucide-server",{"title":232,"path":233,"stem":234,"icon":235},"OpenAPI Spec","\u002Fen\u002Freference\u002Fapi-reference\u002Fopenapi-spec","en\u002F6.reference\u002F5.api-reference\u002F2.openapi-spec","i-lucide-file-code",{"title":237,"path":238,"stem":239,"children":240,"icon":242},"Schema Migration","\u002Fen\u002Freference\u002Fapi-reference\u002Fschema-migration","en\u002F6.reference\u002F5.api-reference\u002F3.schema-migration\u002Findex",[241,243,248,253],{"title":237,"path":238,"stem":239,"icon":242},"i-lucide-database-zap",{"title":244,"path":245,"stem":246,"icon":247},"Apply Migrations","\u002Fen\u002Freference\u002Fapi-reference\u002Fschema-migration\u002Fapply-migrations","en\u002F6.reference\u002F5.api-reference\u002F3.schema-migration\u002F1.apply-migrations","i-lucide-upload",{"title":249,"path":250,"stem":251,"icon":252},"Import Changes","\u002Fen\u002Freference\u002Fapi-reference\u002Fschema-migration\u002Fimport-changes","en\u002F6.reference\u002F5.api-reference\u002F3.schema-migration\u002F2.import-changes","i-lucide-refresh-cw",{"title":254,"path":255,"stem":256,"icon":257},"Operation Reference","\u002Fen\u002Freference\u002Fapi-reference\u002Fschema-migration\u002Foperation-reference","en\u002F6.reference\u002F5.api-reference\u002F3.schema-migration\u002F3.operation-reference","i-lucide-list-tree",{"title":259,"path":260,"stem":261,"children":262,"page":6},"Pitfalls","\u002Fen\u002Freference\u002Fpitfalls","en\u002F6.reference\u002F6.pitfalls",[263,267,272,277,282],{"title":114,"path":264,"stem":265,"icon":266},"\u002Fen\u002Freference\u002Fpitfalls\u002Foverview","en\u002F6.reference\u002F6.pitfalls\u002F1.overview","i-lucide-triangle-alert",{"title":268,"path":269,"stem":270,"icon":271},"Concurrent Migrations","\u002Fen\u002Freference\u002Fpitfalls\u002Fconcurrent-migrations","en\u002F6.reference\u002F6.pitfalls\u002F2.concurrent-migrations","i-lucide-git-merge",{"title":273,"path":274,"stem":275,"icon":276},"Instance Configuration","\u002Fen\u002Freference\u002Fpitfalls\u002Finstance-configuration-related-problems","en\u002F6.reference\u002F6.pitfalls\u002F3.instance-configuration-related-problems","i-lucide-wrench",{"title":278,"path":279,"stem":280,"icon":281},"Overly Permissive Public Roles","\u002Fen\u002Freference\u002Fpitfalls\u002Foverly-permissive","en\u002F6.reference\u002F6.pitfalls\u002F4.overly-permissive","i-lucide-shield-off",{"title":283,"path":284,"stem":285,"icon":286},"No Aggregates","\u002Fen\u002Freference\u002Fpitfalls\u002Fno-aggregates","en\u002F6.reference\u002F6.pitfalls\u002F5.no-aggregates","i-lucide-sigma",{"title":288,"icon":289,"path":290,"stem":291,"children":292,"page":6},"Release Notes","i-lucide-rocket","\u002Fen\u002Frelease-notes","en\u002F7.release-notes",[293],{"title":294,"path":295,"stem":296,"icon":289},"Changelog","\u002Fen\u002Frelease-notes\u002Fchangelog","en\u002F7.release-notes\u002F1.changelog",{"id":298,"title":254,"body":299,"description":3226,"extension":3227,"links":3228,"meta":3229,"navigation":3230,"path":255,"seo":3231,"stem":256,"__hash__":3232},"docs_en\u002Fen\u002F6.reference\u002F5.api-reference\u002F3.schema-migration\u002F3.operation-reference.md",{"type":300,"value":301,"toc":3190},"minimark",[302,307,320,335,359,363,366,371,377,471,475,483,536,540,546,587,591,603,607,612,713,759,763,768,818,852,856,870,934,938,944,982,986,1012,1016,1021,1154,1190,1194,1199,1285,1290,1376,1380,1385,1423,1427,1439,1503,1507,1521,1525,1530,1609,1635,1639,1644,1682,1686,1696,1700,1711,1976,1979,2017,2023,2034,2045,2111,2115,2121,2187,2195,2199,2205,2258,2262,2271,2324,2327,2348,2464,2580,2596,2600,2613,2617,2620,2629,2661,2677,2691,2770,2796,2810,2816,2827,2870,2876,2906,2912,2942,2948,2988,2991,2997,3052,3058,3109,3113,3116,3143,3154,3158,3186],[303,304,306],"h2",{"id":305},"operation-format","Operation Format",[308,309,310,311,315,316,319],"p",{},"Every operation is an object with a ",[312,313,314],"code",{},"kind"," and a ",[312,317,318],{},"data"," payload. Operations are grouped below by the entity they act on: namespaces, collections, fields, indexes, and relations.",[308,321,322,323,326,327,330,331,334],{},"New entities carry a client-generated UUID ",[312,324,325],{},"id"," that you reuse to reference them in later operations. Field and index operations nest inside ",[312,328,329],{},"createCollection"," and ",[312,332,333],{},"updateCollection","; every other operation is top-level. Within a collection, Monospace sorts the nested field and index operations into a safe order. Top-level operations run in the order you send them, so order them yourself when one depends on another — create a collection before the relation that references it.",[308,336,337,338,341,342,345,346,349,350,352,353,355,356,358],{},"Collections and fields carry two names. ",[312,339,340],{},"dbName"," is the object's storage name in the data source. ",[312,343,344],{},"apiName"," is the name used in the data API: a collection is served at ",[312,347,348],{},"\u002Fitems\u002F{apiName}",", and fields are addressed by ",[312,351,344],{}," in query parameters. When ",[312,354,344],{}," is omitted, it falls back to ",[312,357,340],{},".",[303,360,362],{"id":361},"namespaces","Namespaces",[308,364,365],{},"A namespace is a schema in the data source that groups related collections.",[367,368,370],"h3",{"id":369},"create-a-namespace","Create a Namespace",[308,372,373,376],{},[312,374,375],{},"createNamespace"," adds a namespace to a data source.",[378,379,385],"pre",{"className":380,"code":381,"filename":382,"language":383,"meta":384,"style":384},"language-json shiki shiki-themes monospace-light monospace-light monospace-dark","{\n  \"kind\": \"createNamespace\",\n  \"data\": {\n    \"id\": \"3c1d2e3f-0001-4a1a-9c1a-000000000001\",\n    \"sourceId\": \"d7c8f0e2-9b3a-4c1e-8f2a-1a2b3c4d5e6f\",\n    \"dbName\": \"reporting\"\n  }\n}\n","operation.json","json","",[312,386,387,396,413,422,435,448,459,465],{"__ignoreMap":384},[388,389,392],"span",{"class":390,"line":391},"line",1,[388,393,395],{"class":394},"sTMul","{\n",[388,397,399,403,406,410],{"class":390,"line":398},2,[388,400,402],{"class":401},"snHjA","  \"kind\"",[388,404,405],{"class":394},": ",[388,407,409],{"class":408},"suKVh","\"createNamespace\"",[388,411,412],{"class":394},",\n",[388,414,416,419],{"class":390,"line":415},3,[388,417,418],{"class":401},"  \"data\"",[388,420,421],{"class":394},": {\n",[388,423,425,428,430,433],{"class":390,"line":424},4,[388,426,427],{"class":401},"    \"id\"",[388,429,405],{"class":394},[388,431,432],{"class":408},"\"3c1d2e3f-0001-4a1a-9c1a-000000000001\"",[388,434,412],{"class":394},[388,436,438,441,443,446],{"class":390,"line":437},5,[388,439,440],{"class":401},"    \"sourceId\"",[388,442,405],{"class":394},[388,444,445],{"class":408},"\"d7c8f0e2-9b3a-4c1e-8f2a-1a2b3c4d5e6f\"",[388,447,412],{"class":394},[388,449,451,454,456],{"class":390,"line":450},6,[388,452,453],{"class":401},"    \"dbName\"",[388,455,405],{"class":394},[388,457,458],{"class":408},"\"reporting\"\n",[388,460,462],{"class":390,"line":461},7,[388,463,464],{"class":394},"  }\n",[388,466,468],{"class":390,"line":467},8,[388,469,470],{"class":394},"}\n",[367,472,474],{"id":473},"rename-a-namespace","Rename a Namespace",[308,476,477,480,481,358],{},[312,478,479],{},"renameNamespace"," changes a namespace's ",[312,482,340],{},[378,484,486],{"className":380,"code":485,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"renameNamespace\",\n  \"data\": {\n    \"id\": \"3c1d2e3f-0001-4a1a-9c1a-000000000001\",\n    \"dbName\": \"analytics\"\n  }\n}\n",[312,487,488,492,503,509,519,528,532],{"__ignoreMap":384},[388,489,490],{"class":390,"line":391},[388,491,395],{"class":394},[388,493,494,496,498,501],{"class":390,"line":398},[388,495,402],{"class":401},[388,497,405],{"class":394},[388,499,500],{"class":408},"\"renameNamespace\"",[388,502,412],{"class":394},[388,504,505,507],{"class":390,"line":415},[388,506,418],{"class":401},[388,508,421],{"class":394},[388,510,511,513,515,517],{"class":390,"line":424},[388,512,427],{"class":401},[388,514,405],{"class":394},[388,516,432],{"class":408},[388,518,412],{"class":394},[388,520,521,523,525],{"class":390,"line":437},[388,522,453],{"class":401},[388,524,405],{"class":394},[388,526,527],{"class":408},"\"analytics\"\n",[388,529,530],{"class":390,"line":450},[388,531,464],{"class":394},[388,533,534],{"class":390,"line":461},[388,535,470],{"class":394},[367,537,539],{"id":538},"delete-a-namespace","Delete a Namespace",[308,541,542,545],{},[312,543,544],{},"deleteNamespace"," removes a namespace.",[378,547,549],{"className":380,"code":548,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"deleteNamespace\",\n  \"data\": { \"id\": \"3c1d2e3f-0001-4a1a-9c1a-000000000001\" }\n}\n",[312,550,551,555,566,583],{"__ignoreMap":384},[388,552,553],{"class":390,"line":391},[388,554,395],{"class":394},[388,556,557,559,561,564],{"class":390,"line":398},[388,558,402],{"class":401},[388,560,405],{"class":394},[388,562,563],{"class":408},"\"deleteNamespace\"",[388,565,412],{"class":394},[388,567,568,570,573,576,578,580],{"class":390,"line":415},[388,569,418],{"class":401},[388,571,572],{"class":394},": { ",[388,574,575],{"class":401},"\"id\"",[388,577,405],{"class":394},[388,579,432],{"class":408},[388,581,582],{"class":394}," }\n",[388,584,585],{"class":390,"line":424},[388,586,470],{"class":394},[303,588,590],{"id":589},"collections","Collections",[308,592,593,594,330,596,598,599,602],{},"A collection is a container for items of the same type. ",[312,595,329],{},[312,597,333],{}," carry nested field and index operations in their own ",[312,600,601],{},"data.operations"," array.",[367,604,606],{"id":605},"create-a-collection","Create a Collection",[308,608,609,611],{},[312,610,329],{}," adds a collection and, optionally, its initial fields and indexes.",[378,613,615],{"className":380,"code":614,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"createCollection\",\n  \"data\": {\n    \"id\": \"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\",\n    \"sourceId\": \"d7c8f0e2-9b3a-4c1e-8f2a-1a2b3c4d5e6f\",\n    \"namespaceId\": null,\n    \"dbName\": \"articles\",\n    \"apiName\": \"articles\",\n    \"operations\": []\n  }\n}\n",[312,616,617,621,632,638,649,659,672,683,694,703,708],{"__ignoreMap":384},[388,618,619],{"class":390,"line":391},[388,620,395],{"class":394},[388,622,623,625,627,630],{"class":390,"line":398},[388,624,402],{"class":401},[388,626,405],{"class":394},[388,628,629],{"class":408},"\"createCollection\"",[388,631,412],{"class":394},[388,633,634,636],{"class":390,"line":415},[388,635,418],{"class":401},[388,637,421],{"class":394},[388,639,640,642,644,647],{"class":390,"line":424},[388,641,427],{"class":401},[388,643,405],{"class":394},[388,645,646],{"class":408},"\"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\"",[388,648,412],{"class":394},[388,650,651,653,655,657],{"class":390,"line":437},[388,652,440],{"class":401},[388,654,405],{"class":394},[388,656,445],{"class":408},[388,658,412],{"class":394},[388,660,661,664,666,670],{"class":390,"line":450},[388,662,663],{"class":401},"    \"namespaceId\"",[388,665,405],{"class":394},[388,667,669],{"class":668},"ssBNi","null",[388,671,412],{"class":394},[388,673,674,676,678,681],{"class":390,"line":461},[388,675,453],{"class":401},[388,677,405],{"class":394},[388,679,680],{"class":408},"\"articles\"",[388,682,412],{"class":394},[388,684,685,688,690,692],{"class":390,"line":467},[388,686,687],{"class":401},"    \"apiName\"",[388,689,405],{"class":394},[388,691,680],{"class":408},[388,693,412],{"class":394},[388,695,697,700],{"class":390,"line":696},9,[388,698,699],{"class":401},"    \"operations\"",[388,701,702],{"class":394},": []\n",[388,704,706],{"class":390,"line":705},10,[388,707,464],{"class":394},[388,709,711],{"class":390,"line":710},11,[388,712,470],{"class":394},[714,715,716,730,739],"ul",{},[717,718,719,722,723,725,726,729],"li",{},[312,720,721],{},"namespaceId"," — ",[312,724,669],{}," places the collection in the data source's default namespace. On the built-in system source, it places the collection in the project's ",[312,727,728],{},"_data"," namespace.",[717,731,732,722,734,736,737],{},[312,733,344],{},[312,735,669],{}," falls back to ",[312,738,340],{},[717,740,741,744,745,330,752,758],{},[312,742,743],{},"operations"," — nested ",[746,747,749],"a",{"href":748},"#create-a-field",[312,750,751],{},"createPrimitiveField",[746,753,755],{"href":754},"#create-an-index",[312,756,757],{},"createIndex"," operations",[367,760,762],{"id":761},"update-a-collection","Update a Collection",[308,764,765,767],{},[312,766,333],{}," applies nested field and index operations to an existing collection.",[378,769,771],{"className":380,"code":770,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"updateCollection\",\n  \"data\": {\n    \"id\": \"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\",\n    \"operations\": []\n  }\n}\n",[312,772,773,777,788,794,804,810,814],{"__ignoreMap":384},[388,774,775],{"class":390,"line":391},[388,776,395],{"class":394},[388,778,779,781,783,786],{"class":390,"line":398},[388,780,402],{"class":401},[388,782,405],{"class":394},[388,784,785],{"class":408},"\"updateCollection\"",[388,787,412],{"class":394},[388,789,790,792],{"class":390,"line":415},[388,791,418],{"class":401},[388,793,421],{"class":394},[388,795,796,798,800,802],{"class":390,"line":424},[388,797,427],{"class":401},[388,799,405],{"class":394},[388,801,646],{"class":408},[388,803,412],{"class":394},[388,805,806,808],{"class":390,"line":437},[388,807,699],{"class":401},[388,809,702],{"class":394},[388,811,812],{"class":390,"line":450},[388,813,464],{"class":394},[388,815,816],{"class":390,"line":461},[388,817,470],{"class":394},[308,819,820,821,823,824,828,829,828,835,828,841,845,846,358],{},"The nested ",[312,822,743],{}," array accepts ",[746,825,826],{"href":748},[312,827,751],{},", ",[746,830,832],{"href":831},"#update-a-field",[312,833,834],{},"updatePrimitiveField",[746,836,838],{"href":837},"#delete-a-field",[312,839,840],{},"deletePrimitiveField",[746,842,843],{"href":754},[312,844,757],{},", and ",[746,847,849],{"href":848},"#delete-an-index",[312,850,851],{},"deleteIndex",[367,853,855],{"id":854},"rename-a-collection","Rename a Collection",[308,857,858,861,862,828,864,866,867,869],{},[312,859,860],{},"renameCollection"," changes a collection's ",[312,863,340],{},[312,865,344],{},", or both. Set either to ",[312,868,669],{}," to leave it unchanged.",[378,871,873],{"className":380,"code":872,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"renameCollection\",\n  \"data\": {\n    \"id\": \"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\",\n    \"dbName\": \"posts\",\n    \"apiName\": \"posts\"\n  }\n}\n",[312,874,875,879,890,896,906,917,926,930],{"__ignoreMap":384},[388,876,877],{"class":390,"line":391},[388,878,395],{"class":394},[388,880,881,883,885,888],{"class":390,"line":398},[388,882,402],{"class":401},[388,884,405],{"class":394},[388,886,887],{"class":408},"\"renameCollection\"",[388,889,412],{"class":394},[388,891,892,894],{"class":390,"line":415},[388,893,418],{"class":401},[388,895,421],{"class":394},[388,897,898,900,902,904],{"class":390,"line":424},[388,899,427],{"class":401},[388,901,405],{"class":394},[388,903,646],{"class":408},[388,905,412],{"class":394},[388,907,908,910,912,915],{"class":390,"line":437},[388,909,453],{"class":401},[388,911,405],{"class":394},[388,913,914],{"class":408},"\"posts\"",[388,916,412],{"class":394},[388,918,919,921,923],{"class":390,"line":450},[388,920,687],{"class":401},[388,922,405],{"class":394},[388,924,925],{"class":408},"\"posts\"\n",[388,927,928],{"class":390,"line":461},[388,929,464],{"class":394},[388,931,932],{"class":390,"line":467},[388,933,470],{"class":394},[367,935,937],{"id":936},"delete-a-collection","Delete a Collection",[308,939,940,943],{},[312,941,942],{},"deleteCollection"," removes a collection.",[378,945,947],{"className":380,"code":946,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"deleteCollection\",\n  \"data\": { \"id\": \"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\" }\n}\n",[312,948,949,953,964,978],{"__ignoreMap":384},[388,950,951],{"class":390,"line":391},[388,952,395],{"class":394},[388,954,955,957,959,962],{"class":390,"line":398},[388,956,402],{"class":401},[388,958,405],{"class":394},[388,960,961],{"class":408},"\"deleteCollection\"",[388,963,412],{"class":394},[388,965,966,968,970,972,974,976],{"class":390,"line":415},[388,967,418],{"class":401},[388,969,572],{"class":394},[388,971,575],{"class":401},[388,973,405],{"class":394},[388,975,646],{"class":408},[388,977,582],{"class":394},[388,979,980],{"class":390,"line":424},[388,981,470],{"class":394},[303,983,985],{"id":984},"fields","Fields",[308,987,988,989,828,991,845,993,995,996,1001,1002,1007,1008,1011],{},"A field is a named value on an item. ",[312,990,751],{},[312,992,834],{},[312,994,840],{}," nest inside ",[746,997,999],{"href":998},"#create-a-collection",[312,1000,329],{}," or ",[746,1003,1005],{"href":1004},"#update-a-collection",[312,1006,333],{},". ",[312,1009,1010],{},"renamePrimitiveField"," is top-level.",[367,1013,1015],{"id":1014},"create-a-field","Create a Field",[308,1017,1018,1020],{},[312,1019,751],{}," adds a field to a collection.",[378,1022,1024],{"className":380,"code":1023,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"createPrimitiveField\",\n  \"data\": {\n    \"id\": \"9568d51f-2dde-40c1-93e4-98cc3feaca53\",\n    \"dbName\": \"title\",\n    \"apiName\": \"title\",\n    \"type\": { \"name\": \"string\", \"params\": { \"length\": \"unlimited\" } },\n    \"isNullable\": false,\n    \"isList\": false,\n    \"defaultValue\": null\n  }\n}\n",[312,1025,1026,1030,1041,1047,1058,1069,1079,1112,1124,1135,1145,1149],{"__ignoreMap":384},[388,1027,1028],{"class":390,"line":391},[388,1029,395],{"class":394},[388,1031,1032,1034,1036,1039],{"class":390,"line":398},[388,1033,402],{"class":401},[388,1035,405],{"class":394},[388,1037,1038],{"class":408},"\"createPrimitiveField\"",[388,1040,412],{"class":394},[388,1042,1043,1045],{"class":390,"line":415},[388,1044,418],{"class":401},[388,1046,421],{"class":394},[388,1048,1049,1051,1053,1056],{"class":390,"line":424},[388,1050,427],{"class":401},[388,1052,405],{"class":394},[388,1054,1055],{"class":408},"\"9568d51f-2dde-40c1-93e4-98cc3feaca53\"",[388,1057,412],{"class":394},[388,1059,1060,1062,1064,1067],{"class":390,"line":437},[388,1061,453],{"class":401},[388,1063,405],{"class":394},[388,1065,1066],{"class":408},"\"title\"",[388,1068,412],{"class":394},[388,1070,1071,1073,1075,1077],{"class":390,"line":450},[388,1072,687],{"class":401},[388,1074,405],{"class":394},[388,1076,1066],{"class":408},[388,1078,412],{"class":394},[388,1080,1081,1084,1086,1089,1091,1094,1096,1099,1101,1104,1106,1109],{"class":390,"line":461},[388,1082,1083],{"class":401},"    \"type\"",[388,1085,572],{"class":394},[388,1087,1088],{"class":401},"\"name\"",[388,1090,405],{"class":394},[388,1092,1093],{"class":408},"\"string\"",[388,1095,828],{"class":394},[388,1097,1098],{"class":401},"\"params\"",[388,1100,572],{"class":394},[388,1102,1103],{"class":401},"\"length\"",[388,1105,405],{"class":394},[388,1107,1108],{"class":408},"\"unlimited\"",[388,1110,1111],{"class":394}," } },\n",[388,1113,1114,1117,1119,1122],{"class":390,"line":467},[388,1115,1116],{"class":401},"    \"isNullable\"",[388,1118,405],{"class":394},[388,1120,1121],{"class":668},"false",[388,1123,412],{"class":394},[388,1125,1126,1129,1131,1133],{"class":390,"line":696},[388,1127,1128],{"class":401},"    \"isList\"",[388,1130,405],{"class":394},[388,1132,1121],{"class":668},[388,1134,412],{"class":394},[388,1136,1137,1140,1142],{"class":390,"line":705},[388,1138,1139],{"class":401},"    \"defaultValue\"",[388,1141,405],{"class":394},[388,1143,1144],{"class":668},"null\n",[388,1146,1147],{"class":390,"line":710},[388,1148,464],{"class":394},[388,1150,1152],{"class":390,"line":1151},12,[388,1153,470],{"class":394},[714,1155,1156,1167,1176],{},[717,1157,1158,1161,1162,1166],{},[312,1159,1160],{},"type"," — the field type object (see ",[746,1163,1165],{"href":1164},"#field-types","Field Types",")",[717,1168,1169,722,1172,1175],{},[312,1170,1171],{},"isList",[312,1173,1174],{},"true"," stores an array of the type",[717,1177,1178,1181,1182,1186,1187,1189],{},[312,1179,1180],{},"defaultValue"," — a ",[746,1183,1185],{"href":1184},"#default-values","default value"," object, or ",[312,1188,669],{}," for no default",[367,1191,1193],{"id":1192},"update-a-field","Update a Field",[308,1195,1196,1198],{},[312,1197,834],{}," applies one or more change operations to a field.",[378,1200,1202],{"className":380,"code":1201,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"updatePrimitiveField\",\n  \"data\": {\n    \"id\": \"9568d51f-2dde-40c1-93e4-98cc3feaca53\",\n    \"operations\": [\n      { \"kind\": \"changeIsNullable\", \"data\": { \"isNullable\": true } }\n    ]\n  }\n}\n",[312,1203,1204,1208,1219,1225,1235,1242,1272,1277,1281],{"__ignoreMap":384},[388,1205,1206],{"class":390,"line":391},[388,1207,395],{"class":394},[388,1209,1210,1212,1214,1217],{"class":390,"line":398},[388,1211,402],{"class":401},[388,1213,405],{"class":394},[388,1215,1216],{"class":408},"\"updatePrimitiveField\"",[388,1218,412],{"class":394},[388,1220,1221,1223],{"class":390,"line":415},[388,1222,418],{"class":401},[388,1224,421],{"class":394},[388,1226,1227,1229,1231,1233],{"class":390,"line":424},[388,1228,427],{"class":401},[388,1230,405],{"class":394},[388,1232,1055],{"class":408},[388,1234,412],{"class":394},[388,1236,1237,1239],{"class":390,"line":437},[388,1238,699],{"class":401},[388,1240,1241],{"class":394},": [\n",[388,1243,1244,1247,1250,1252,1255,1257,1260,1262,1265,1267,1269],{"class":390,"line":450},[388,1245,1246],{"class":394},"      { ",[388,1248,1249],{"class":401},"\"kind\"",[388,1251,405],{"class":394},[388,1253,1254],{"class":408},"\"changeIsNullable\"",[388,1256,828],{"class":394},[388,1258,1259],{"class":401},"\"data\"",[388,1261,572],{"class":394},[388,1263,1264],{"class":401},"\"isNullable\"",[388,1266,405],{"class":394},[388,1268,1174],{"class":668},[388,1270,1271],{"class":394}," } }\n",[388,1273,1274],{"class":390,"line":461},[388,1275,1276],{"class":394},"    ]\n",[388,1278,1279],{"class":390,"line":467},[388,1280,464],{"class":394},[388,1282,1283],{"class":390,"line":696},[388,1284,470],{"class":394},[308,1286,820,1287,1289],{},[312,1288,743],{}," array accepts:",[1291,1292,1293,1310],"table",{},[1294,1295,1296],"thead",{},[1297,1298,1299,1303,1307],"tr",{},[1300,1301,1302],"th",{},"Kind",[1300,1304,1305],{},[312,1306,318],{},[1300,1308,1309],{},"Changes",[1311,1312,1313,1329,1344,1359],"tbody",{},[1297,1314,1315,1321,1326],{},[1316,1317,1318],"td",{},[312,1319,1320],{},"changeType",[1316,1322,1323],{},[312,1324,1325],{},"{ \"type\": { ... } }",[1316,1327,1328],{},"The field's type",[1297,1330,1331,1336,1341],{},[1316,1332,1333],{},[312,1334,1335],{},"changeIsNullable",[1316,1337,1338],{},[312,1339,1340],{},"{ \"isNullable\": true }",[1316,1342,1343],{},"Whether the field accepts null",[1297,1345,1346,1351,1356],{},[1316,1347,1348],{},[312,1349,1350],{},"changeIsList",[1316,1352,1353],{},[312,1354,1355],{},"{ \"isList\": true }",[1316,1357,1358],{},"Whether the field stores an array",[1297,1360,1361,1366,1371],{},[1316,1362,1363],{},[312,1364,1365],{},"changeDefaultValue",[1316,1367,1368],{},[312,1369,1370],{},"{ \"defaultValue\": ... }",[1316,1372,1373,1374],{},"The field's ",[746,1375,1185],{"href":1184},[367,1377,1379],{"id":1378},"delete-a-field","Delete a Field",[308,1381,1382,1384],{},[312,1383,840],{}," removes a field from a collection.",[378,1386,1388],{"className":380,"code":1387,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"deletePrimitiveField\",\n  \"data\": { \"id\": \"9568d51f-2dde-40c1-93e4-98cc3feaca53\" }\n}\n",[312,1389,1390,1394,1405,1419],{"__ignoreMap":384},[388,1391,1392],{"class":390,"line":391},[388,1393,395],{"class":394},[388,1395,1396,1398,1400,1403],{"class":390,"line":398},[388,1397,402],{"class":401},[388,1399,405],{"class":394},[388,1401,1402],{"class":408},"\"deletePrimitiveField\"",[388,1404,412],{"class":394},[388,1406,1407,1409,1411,1413,1415,1417],{"class":390,"line":415},[388,1408,418],{"class":401},[388,1410,572],{"class":394},[388,1412,575],{"class":401},[388,1414,405],{"class":394},[388,1416,1055],{"class":408},[388,1418,582],{"class":394},[388,1420,1421],{"class":390,"line":424},[388,1422,470],{"class":394},[367,1424,1426],{"id":1425},"rename-a-field","Rename a Field",[308,1428,1429,1431,1432,828,1434,1436,1437,869],{},[312,1430,1010],{}," changes a field's ",[312,1433,340],{},[312,1435,344],{},", or both. This is a top-level operation. Set either to ",[312,1438,669],{},[378,1440,1442],{"className":380,"code":1441,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"renamePrimitiveField\",\n  \"data\": {\n    \"id\": \"9568d51f-2dde-40c1-93e4-98cc3feaca53\",\n    \"dbName\": \"headline\",\n    \"apiName\": \"headline\"\n  }\n}\n",[312,1443,1444,1448,1459,1465,1475,1486,1495,1499],{"__ignoreMap":384},[388,1445,1446],{"class":390,"line":391},[388,1447,395],{"class":394},[388,1449,1450,1452,1454,1457],{"class":390,"line":398},[388,1451,402],{"class":401},[388,1453,405],{"class":394},[388,1455,1456],{"class":408},"\"renamePrimitiveField\"",[388,1458,412],{"class":394},[388,1460,1461,1463],{"class":390,"line":415},[388,1462,418],{"class":401},[388,1464,421],{"class":394},[388,1466,1467,1469,1471,1473],{"class":390,"line":424},[388,1468,427],{"class":401},[388,1470,405],{"class":394},[388,1472,1055],{"class":408},[388,1474,412],{"class":394},[388,1476,1477,1479,1481,1484],{"class":390,"line":437},[388,1478,453],{"class":401},[388,1480,405],{"class":394},[388,1482,1483],{"class":408},"\"headline\"",[388,1485,412],{"class":394},[388,1487,1488,1490,1492],{"class":390,"line":450},[388,1489,687],{"class":401},[388,1491,405],{"class":394},[388,1493,1494],{"class":408},"\"headline\"\n",[388,1496,1497],{"class":390,"line":461},[388,1498,464],{"class":394},[388,1500,1501],{"class":390,"line":467},[388,1502,470],{"class":394},[303,1504,1506],{"id":1505},"indexes","Indexes",[308,1508,1509,330,1511,995,1513,1001,1517,358],{},[312,1510,757],{},[312,1512,851],{},[746,1514,1515],{"href":998},[312,1516,329],{},[746,1518,1519],{"href":1004},[312,1520,333],{},[367,1522,1524],{"id":1523},"create-an-index","Create an Index",[308,1526,1527,1529],{},[312,1528,757],{}," adds an index over one or more fields.",[378,1531,1533],{"className":380,"code":1532,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"createIndex\",\n  \"data\": {\n    \"id\": \"d78c36f9-b627-433c-88bb-58eaadba50e1\",\n    \"dbName\": \"articles_slug_idx\",\n    \"fieldIds\": [\"9568d51f-2dde-40c1-93e4-98cc3feaca53\"],\n    \"kind\": \"unique\"\n  }\n}\n",[312,1534,1535,1539,1550,1556,1567,1578,1591,1601,1605],{"__ignoreMap":384},[388,1536,1537],{"class":390,"line":391},[388,1538,395],{"class":394},[388,1540,1541,1543,1545,1548],{"class":390,"line":398},[388,1542,402],{"class":401},[388,1544,405],{"class":394},[388,1546,1547],{"class":408},"\"createIndex\"",[388,1549,412],{"class":394},[388,1551,1552,1554],{"class":390,"line":415},[388,1553,418],{"class":401},[388,1555,421],{"class":394},[388,1557,1558,1560,1562,1565],{"class":390,"line":424},[388,1559,427],{"class":401},[388,1561,405],{"class":394},[388,1563,1564],{"class":408},"\"d78c36f9-b627-433c-88bb-58eaadba50e1\"",[388,1566,412],{"class":394},[388,1568,1569,1571,1573,1576],{"class":390,"line":437},[388,1570,453],{"class":401},[388,1572,405],{"class":394},[388,1574,1575],{"class":408},"\"articles_slug_idx\"",[388,1577,412],{"class":394},[388,1579,1580,1583,1586,1588],{"class":390,"line":450},[388,1581,1582],{"class":401},"    \"fieldIds\"",[388,1584,1585],{"class":394},": [",[388,1587,1055],{"class":408},[388,1589,1590],{"class":394},"],\n",[388,1592,1593,1596,1598],{"class":390,"line":461},[388,1594,1595],{"class":401},"    \"kind\"",[388,1597,405],{"class":394},[388,1599,1600],{"class":408},"\"unique\"\n",[388,1602,1603],{"class":390,"line":467},[388,1604,464],{"class":394},[388,1606,1607],{"class":390,"line":696},[388,1608,470],{"class":394},[714,1610,1611,1617],{},[717,1612,1613,1616],{},[312,1614,1615],{},"fieldIds"," — the indexed fields, in order; at least one is required",[717,1618,1619,722,1621,828,1624,1627,1628,1631,1632,1634],{},[312,1620,314],{},[312,1622,1623],{},"unique",[312,1625,1626],{},"normal",", or ",[312,1629,1630],{},"primary"," (",[312,1633,1630],{}," backs a collection's primary key and makes every indexed field non-nullable)",[367,1636,1638],{"id":1637},"delete-an-index","Delete an Index",[308,1640,1641,1643],{},[312,1642,851],{}," removes an index.",[378,1645,1647],{"className":380,"code":1646,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"deleteIndex\",\n  \"data\": { \"id\": \"d78c36f9-b627-433c-88bb-58eaadba50e1\" }\n}\n",[312,1648,1649,1653,1664,1678],{"__ignoreMap":384},[388,1650,1651],{"class":390,"line":391},[388,1652,395],{"class":394},[388,1654,1655,1657,1659,1662],{"class":390,"line":398},[388,1656,402],{"class":401},[388,1658,405],{"class":394},[388,1660,1661],{"class":408},"\"deleteIndex\"",[388,1663,412],{"class":394},[388,1665,1666,1668,1670,1672,1674,1676],{"class":390,"line":415},[388,1667,418],{"class":401},[388,1669,572],{"class":394},[388,1671,575],{"class":401},[388,1673,405],{"class":394},[388,1675,1564],{"class":408},[388,1677,582],{"class":394},[388,1679,1680],{"class":390,"line":424},[388,1681,470],{"class":394},[303,1683,1685],{"id":1684},"relations","Relations",[308,1687,1688,1689,1692,1693,1695],{},"A relation links two collections. ",[312,1690,1691],{},"createRelationFieldPair"," creates both sides at once — one relation field on each collection. The unconstrained side's ",[312,1694,1171],{}," sets whether the relation is to-many or to-one.",[367,1697,1699],{"id":1698},"create-a-relation","Create a Relation",[308,1701,1702,1704,1705,1707,1708,358],{},[312,1703,1691],{}," creates a bidirectional relation. Its ",[312,1706,318],{}," is itself tagged with ",[312,1709,1710],{},"kind: \"single\"",[378,1712,1714],{"className":380,"code":1713,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"createRelationFieldPair\",\n  \"data\": {\n    \"kind\": \"single\",\n    \"data\": {\n      \"relationName\": \"article_author\",\n      \"onUpdate\": \"noAction\",\n      \"onDelete\": \"setNull\",\n      \"firstField\": {\n        \"id\": \"11111111-1111-4a1a-9c1a-aaaaaaaaaaaa\",\n        \"apiName\": \"author\",\n        \"isList\": false,\n        \"isConstrained\": true,\n        \"collectionId\": \"f4ccfb8e-5d79-4d2f-83b0-5b749f784b00\",\n        \"fieldIds\": [\"d4e5f6a7-4444-4a1a-9c1a-555566667777\"]\n      },\n      \"secondField\": {\n        \"id\": \"22222222-2222-4a1a-9c1a-bbbbbbbbbbbb\",\n        \"apiName\": \"articles\",\n        \"isList\": true,\n        \"isConstrained\": false,\n        \"collectionId\": \"a83bda5c-96bd-462f-8012-481115dfa751\",\n        \"fieldIds\": [\"b8c9d0e1-6666-4a1a-9c1a-777788889999\"]\n      }\n    }\n  }\n}\n",[312,1715,1716,1720,1731,1737,1748,1755,1767,1779,1791,1798,1810,1822,1833,1845,1857,1871,1877,1885,1897,1908,1919,1930,1942,1954,1960,1966,1971],{"__ignoreMap":384},[388,1717,1718],{"class":390,"line":391},[388,1719,395],{"class":394},[388,1721,1722,1724,1726,1729],{"class":390,"line":398},[388,1723,402],{"class":401},[388,1725,405],{"class":394},[388,1727,1728],{"class":408},"\"createRelationFieldPair\"",[388,1730,412],{"class":394},[388,1732,1733,1735],{"class":390,"line":415},[388,1734,418],{"class":401},[388,1736,421],{"class":394},[388,1738,1739,1741,1743,1746],{"class":390,"line":424},[388,1740,1595],{"class":401},[388,1742,405],{"class":394},[388,1744,1745],{"class":408},"\"single\"",[388,1747,412],{"class":394},[388,1749,1750,1753],{"class":390,"line":437},[388,1751,1752],{"class":401},"    \"data\"",[388,1754,421],{"class":394},[388,1756,1757,1760,1762,1765],{"class":390,"line":450},[388,1758,1759],{"class":401},"      \"relationName\"",[388,1761,405],{"class":394},[388,1763,1764],{"class":408},"\"article_author\"",[388,1766,412],{"class":394},[388,1768,1769,1772,1774,1777],{"class":390,"line":461},[388,1770,1771],{"class":401},"      \"onUpdate\"",[388,1773,405],{"class":394},[388,1775,1776],{"class":408},"\"noAction\"",[388,1778,412],{"class":394},[388,1780,1781,1784,1786,1789],{"class":390,"line":467},[388,1782,1783],{"class":401},"      \"onDelete\"",[388,1785,405],{"class":394},[388,1787,1788],{"class":408},"\"setNull\"",[388,1790,412],{"class":394},[388,1792,1793,1796],{"class":390,"line":696},[388,1794,1795],{"class":401},"      \"firstField\"",[388,1797,421],{"class":394},[388,1799,1800,1803,1805,1808],{"class":390,"line":705},[388,1801,1802],{"class":401},"        \"id\"",[388,1804,405],{"class":394},[388,1806,1807],{"class":408},"\"11111111-1111-4a1a-9c1a-aaaaaaaaaaaa\"",[388,1809,412],{"class":394},[388,1811,1812,1815,1817,1820],{"class":390,"line":710},[388,1813,1814],{"class":401},"        \"apiName\"",[388,1816,405],{"class":394},[388,1818,1819],{"class":408},"\"author\"",[388,1821,412],{"class":394},[388,1823,1824,1827,1829,1831],{"class":390,"line":1151},[388,1825,1826],{"class":401},"        \"isList\"",[388,1828,405],{"class":394},[388,1830,1121],{"class":668},[388,1832,412],{"class":394},[388,1834,1836,1839,1841,1843],{"class":390,"line":1835},13,[388,1837,1838],{"class":401},"        \"isConstrained\"",[388,1840,405],{"class":394},[388,1842,1174],{"class":668},[388,1844,412],{"class":394},[388,1846,1848,1851,1853,1855],{"class":390,"line":1847},14,[388,1849,1850],{"class":401},"        \"collectionId\"",[388,1852,405],{"class":394},[388,1854,646],{"class":408},[388,1856,412],{"class":394},[388,1858,1860,1863,1865,1868],{"class":390,"line":1859},15,[388,1861,1862],{"class":401},"        \"fieldIds\"",[388,1864,1585],{"class":394},[388,1866,1867],{"class":408},"\"d4e5f6a7-4444-4a1a-9c1a-555566667777\"",[388,1869,1870],{"class":394},"]\n",[388,1872,1874],{"class":390,"line":1873},16,[388,1875,1876],{"class":394},"      },\n",[388,1878,1880,1883],{"class":390,"line":1879},17,[388,1881,1882],{"class":401},"      \"secondField\"",[388,1884,421],{"class":394},[388,1886,1888,1890,1892,1895],{"class":390,"line":1887},18,[388,1889,1802],{"class":401},[388,1891,405],{"class":394},[388,1893,1894],{"class":408},"\"22222222-2222-4a1a-9c1a-bbbbbbbbbbbb\"",[388,1896,412],{"class":394},[388,1898,1900,1902,1904,1906],{"class":390,"line":1899},19,[388,1901,1814],{"class":401},[388,1903,405],{"class":394},[388,1905,680],{"class":408},[388,1907,412],{"class":394},[388,1909,1911,1913,1915,1917],{"class":390,"line":1910},20,[388,1912,1826],{"class":401},[388,1914,405],{"class":394},[388,1916,1174],{"class":668},[388,1918,412],{"class":394},[388,1920,1922,1924,1926,1928],{"class":390,"line":1921},21,[388,1923,1838],{"class":401},[388,1925,405],{"class":394},[388,1927,1121],{"class":668},[388,1929,412],{"class":394},[388,1931,1933,1935,1937,1940],{"class":390,"line":1932},22,[388,1934,1850],{"class":401},[388,1936,405],{"class":394},[388,1938,1939],{"class":408},"\"a83bda5c-96bd-462f-8012-481115dfa751\"",[388,1941,412],{"class":394},[388,1943,1945,1947,1949,1952],{"class":390,"line":1944},23,[388,1946,1862],{"class":401},[388,1948,1585],{"class":394},[388,1950,1951],{"class":408},"\"b8c9d0e1-6666-4a1a-9c1a-777788889999\"",[388,1953,1870],{"class":394},[388,1955,1957],{"class":390,"line":1956},24,[388,1958,1959],{"class":394},"      }\n",[388,1961,1963],{"class":390,"line":1962},25,[388,1964,1965],{"class":394},"    }\n",[388,1967,1969],{"class":390,"line":1968},26,[388,1970,464],{"class":394},[388,1972,1974],{"class":390,"line":1973},27,[388,1975,470],{"class":394},[308,1977,1978],{},"Each side is a relation field:",[714,1980,1981,1992,2006,2012],{},[717,1982,1983,722,1986,1988,1989,1991],{},[312,1984,1985],{},"isConstrained",[312,1987,1174],{}," on the side that holds the foreign key; set it to ",[312,1990,1121],{}," on the other side",[717,1993,1994,1996,1997,1999,2000,2002,2003,2005],{},[312,1995,1171],{}," — set ",[312,1998,1121],{}," on the constrained side; set it to ",[312,2001,1174],{}," on the unconstrained side for a to-many relation, or ",[312,2004,1121],{}," for a to-one relation",[717,2007,2008,2011],{},[312,2009,2010],{},"collectionId"," — the collection the field belongs to",[717,2013,2014,2016],{},[312,2015,1615],{}," — the backing fields: the foreign key on the constrained side, the referenced key on the other",[308,2018,2019,2020,2022],{},"The fields in ",[312,2021,1615],{}," are primitive fields that must already exist in each collection — create them before the relation references them. When a side lists more than one field, the two sides map positionally: the first field on the constrained side pairs with the first on the referenced side, and so on.",[2024,2025,2026,2027,330,2030,2033],"note",{},"A relation that spans two data sources exists in the project model only. Monospace does not create or enforce a data source constraint for it, including its ",[312,2028,2029],{},"onUpdate",[312,2031,2032],{},"onDelete"," actions.",[308,2035,2036,330,2038,2040,2041,2044],{},[312,2037,2029],{},[312,2039,2032],{}," default to ",[312,2042,2043],{},"noAction"," when omitted. Both accept one of:",[1291,2046,2047,2057],{},[1294,2048,2049],{},[1297,2050,2051,2054],{},[1300,2052,2053],{},"Action",[1300,2055,2056],{},"Behavior",[1311,2058,2059,2068,2078,2088,2101],{},[1297,2060,2061,2065],{},[1316,2062,2063],{},[312,2064,2043],{},[1316,2066,2067],{},"Makes no automatic change. The data source performs its normal referential-integrity check.",[1297,2069,2070,2075],{},[1316,2071,2072],{},[312,2073,2074],{},"cascade",[1316,2076,2077],{},"Cascades the delete or update through the relation.",[1297,2079,2080,2085],{},[1316,2081,2082],{},[312,2083,2084],{},"restrict",[1316,2086,2087],{},"Blocks the operation while related items exist.",[1297,2089,2090,2095],{},[1316,2091,2092],{},[312,2093,2094],{},"setNull",[1316,2096,2097,2098,2100],{},"Sets the dependent backing fields to ",[312,2099,669],{},". It fails when any backing field is non-nullable.",[1297,2102,2103,2108],{},[1316,2104,2105],{},[312,2106,2107],{},"setDefault",[1316,2109,2110],{},"Sets the dependent backing fields to their defaults. It fails when a backing field has no default.",[367,2112,2114],{"id":2113},"update-relation-actions","Update Relation Actions",[308,2116,2117,2120],{},[312,2118,2119],{},"updateRelationFieldPair"," changes one or both referential actions on an existing relation. Include both relation field IDs and at least one action.",[378,2122,2124],{"className":380,"code":2123,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"updateRelationFieldPair\",\n  \"data\": {\n    \"firstFieldId\": \"11111111-1111-4a1a-9c1a-aaaaaaaaaaaa\",\n    \"secondFieldId\": \"22222222-2222-4a1a-9c1a-bbbbbbbbbbbb\",\n    \"onDelete\": \"cascade\"\n  }\n}\n",[312,2125,2126,2130,2141,2147,2158,2169,2179,2183],{"__ignoreMap":384},[388,2127,2128],{"class":390,"line":391},[388,2129,395],{"class":394},[388,2131,2132,2134,2136,2139],{"class":390,"line":398},[388,2133,402],{"class":401},[388,2135,405],{"class":394},[388,2137,2138],{"class":408},"\"updateRelationFieldPair\"",[388,2140,412],{"class":394},[388,2142,2143,2145],{"class":390,"line":415},[388,2144,418],{"class":401},[388,2146,421],{"class":394},[388,2148,2149,2152,2154,2156],{"class":390,"line":424},[388,2150,2151],{"class":401},"    \"firstFieldId\"",[388,2153,405],{"class":394},[388,2155,1807],{"class":408},[388,2157,412],{"class":394},[388,2159,2160,2163,2165,2167],{"class":390,"line":437},[388,2161,2162],{"class":401},"    \"secondFieldId\"",[388,2164,405],{"class":394},[388,2166,1894],{"class":408},[388,2168,412],{"class":394},[388,2170,2171,2174,2176],{"class":390,"line":450},[388,2172,2173],{"class":401},"    \"onDelete\"",[388,2175,405],{"class":394},[388,2177,2178],{"class":408},"\"cascade\"\n",[388,2180,2181],{"class":390,"line":461},[388,2182,464],{"class":394},[388,2184,2185],{"class":390,"line":467},[388,2186,470],{"class":394},[308,2188,2189,2190,2192,2193,358],{},"Omit an action to leave it unchanged. Set an action to ",[312,2191,669],{}," to reset it to ",[312,2194,2043],{},[367,2196,2198],{"id":2197},"delete-a-relation","Delete a Relation",[308,2200,2201,2204],{},[312,2202,2203],{},"deleteRelationFieldPair"," removes both sides of a relation, identified by their field IDs.",[378,2206,2208],{"className":380,"code":2207,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"deleteRelationFieldPair\",\n  \"data\": {\n    \"firstFieldId\": \"11111111-1111-4a1a-9c1a-aaaaaaaaaaaa\",\n    \"secondFieldId\": \"22222222-2222-4a1a-9c1a-bbbbbbbbbbbb\"\n  }\n}\n",[312,2209,2210,2214,2225,2231,2241,2250,2254],{"__ignoreMap":384},[388,2211,2212],{"class":390,"line":391},[388,2213,395],{"class":394},[388,2215,2216,2218,2220,2223],{"class":390,"line":398},[388,2217,402],{"class":401},[388,2219,405],{"class":394},[388,2221,2222],{"class":408},"\"deleteRelationFieldPair\"",[388,2224,412],{"class":394},[388,2226,2227,2229],{"class":390,"line":415},[388,2228,418],{"class":401},[388,2230,421],{"class":394},[388,2232,2233,2235,2237,2239],{"class":390,"line":424},[388,2234,2151],{"class":401},[388,2236,405],{"class":394},[388,2238,1807],{"class":408},[388,2240,412],{"class":394},[388,2242,2243,2245,2247],{"class":390,"line":437},[388,2244,2162],{"class":401},[388,2246,405],{"class":394},[388,2248,2249],{"class":408},"\"22222222-2222-4a1a-9c1a-bbbbbbbbbbbb\"\n",[388,2251,2252],{"class":390,"line":450},[388,2253,464],{"class":394},[388,2255,2256],{"class":390,"line":461},[388,2257,470],{"class":394},[367,2259,2261],{"id":2260},"rename-a-relation-field","Rename a Relation Field",[308,2263,2264,2267,2268,2270],{},[312,2265,2266],{},"renameRelationField"," changes the ",[312,2269,344],{}," of one side of a relation.",[378,2272,2274],{"className":380,"code":2273,"filename":382,"language":383,"meta":384,"style":384},"{\n  \"kind\": \"renameRelationField\",\n  \"data\": {\n    \"id\": \"11111111-1111-4a1a-9c1a-aaaaaaaaaaaa\",\n    \"apiName\": \"writer\"\n  }\n}\n",[312,2275,2276,2280,2291,2297,2307,2316,2320],{"__ignoreMap":384},[388,2277,2278],{"class":390,"line":391},[388,2279,395],{"class":394},[388,2281,2282,2284,2286,2289],{"class":390,"line":398},[388,2283,402],{"class":401},[388,2285,405],{"class":394},[388,2287,2288],{"class":408},"\"renameRelationField\"",[388,2290,412],{"class":394},[388,2292,2293,2295],{"class":390,"line":415},[388,2294,418],{"class":401},[388,2296,421],{"class":394},[388,2298,2299,2301,2303,2305],{"class":390,"line":424},[388,2300,427],{"class":401},[388,2302,405],{"class":394},[388,2304,1807],{"class":408},[388,2306,412],{"class":394},[388,2308,2309,2311,2313],{"class":390,"line":437},[388,2310,687],{"class":401},[388,2312,405],{"class":394},[388,2314,2315],{"class":408},"\"writer\"\n",[388,2317,2318],{"class":390,"line":450},[388,2319,464],{"class":394},[388,2321,2322],{"class":390,"line":461},[388,2323,470],{"class":394},[303,2325,1165],{"id":2326},"field-types",[308,2328,2329,2330,2332,2333,2336,2337,330,2340,2343,2344,2347],{},"The ",[312,2331,1160],{}," object tags a primitive type by ",[312,2334,2335],{},"name",". Most types need only a name. ",[312,2338,2339],{},"string",[312,2341,2342],{},"decimal"," carry a ",[312,2345,2346],{},"params"," object.",[378,2349,2352],{"className":380,"code":2350,"filename":2351,"language":383,"meta":384,"style":384},"{ \"name\": \"boolean\" }\n{ \"name\": \"string\", \"params\": { \"length\": \"unlimited\" } }\n{ \"name\": \"string\", \"params\": { \"length\": \"fixed\", \"value\": 255 } }\n{ \"name\": \"decimal\", \"params\": { \"precision\": 10, \"scale\": 2 } }\n","type.json",[312,2353,2354,2368,2392,2427],{"__ignoreMap":384},[388,2355,2356,2359,2361,2363,2366],{"class":390,"line":391},[388,2357,2358],{"class":394},"{ ",[388,2360,1088],{"class":401},[388,2362,405],{"class":394},[388,2364,2365],{"class":408},"\"boolean\"",[388,2367,582],{"class":394},[388,2369,2370,2372,2374,2376,2378,2380,2382,2384,2386,2388,2390],{"class":390,"line":398},[388,2371,2358],{"class":394},[388,2373,1088],{"class":401},[388,2375,405],{"class":394},[388,2377,1093],{"class":408},[388,2379,828],{"class":394},[388,2381,1098],{"class":401},[388,2383,572],{"class":394},[388,2385,1103],{"class":401},[388,2387,405],{"class":394},[388,2389,1108],{"class":408},[388,2391,1271],{"class":394},[388,2393,2394,2396,2398,2400,2402,2404,2406,2408,2410,2412,2415,2417,2420,2422,2425],{"class":390,"line":415},[388,2395,2358],{"class":394},[388,2397,1088],{"class":401},[388,2399,405],{"class":394},[388,2401,1093],{"class":408},[388,2403,828],{"class":394},[388,2405,1098],{"class":401},[388,2407,572],{"class":394},[388,2409,1103],{"class":401},[388,2411,405],{"class":394},[388,2413,2414],{"class":408},"\"fixed\"",[388,2416,828],{"class":394},[388,2418,2419],{"class":401},"\"value\"",[388,2421,405],{"class":394},[388,2423,2424],{"class":668},"255",[388,2426,1271],{"class":394},[388,2428,2429,2431,2433,2435,2438,2440,2442,2444,2447,2449,2452,2454,2457,2459,2462],{"class":390,"line":424},[388,2430,2358],{"class":394},[388,2432,1088],{"class":401},[388,2434,405],{"class":394},[388,2436,2437],{"class":408},"\"decimal\"",[388,2439,828],{"class":394},[388,2441,1098],{"class":401},[388,2443,572],{"class":394},[388,2445,2446],{"class":401},"\"precision\"",[388,2448,405],{"class":394},[388,2450,2451],{"class":668},"10",[388,2453,828],{"class":394},[388,2455,2456],{"class":401},"\"scale\"",[388,2458,405],{"class":394},[388,2460,2461],{"class":668},"2",[388,2463,1271],{"class":394},[1291,2465,2466,2476],{},[1294,2467,2468],{},[1297,2469,2470,2473],{},[1300,2471,2472],{},"Category",[1300,2474,2475],{},"Names",[1311,2477,2478,2509,2524,2536,2546,2565],{},[1297,2479,2480,2483],{},[1316,2481,2482],{},"Integer",[1316,2484,2485,828,2488,828,2491,828,2494,828,2497,828,2500,828,2503,828,2506],{},[312,2486,2487],{},"int8",[312,2489,2490],{},"int16",[312,2492,2493],{},"int32",[312,2495,2496],{},"int64",[312,2498,2499],{},"uint8",[312,2501,2502],{},"uint16",[312,2504,2505],{},"uint32",[312,2507,2508],{},"uint64",[1297,2510,2511,2514],{},[1316,2512,2513],{},"Floating point",[1316,2515,2516,828,2519,828,2522],{},[312,2517,2518],{},"float32",[312,2520,2521],{},"float64",[312,2523,2342],{},[1297,2525,2526,2529],{},[1316,2527,2528],{},"Text",[1316,2530,2531,828,2533],{},[312,2532,2339],{},[312,2534,2535],{},"uuid",[1297,2537,2538,2541],{},[1316,2539,2540],{},"Boolean",[1316,2542,2543],{},[312,2544,2545],{},"boolean",[1297,2547,2548,2551],{},[1316,2549,2550],{},"Temporal",[1316,2552,2553,828,2556,828,2559,828,2562],{},[312,2554,2555],{},"date",[312,2557,2558],{},"time",[312,2560,2561],{},"dateTime",[312,2563,2564],{},"dateTimeWithTimezone",[1297,2566,2567,2570],{},[1316,2568,2569],{},"Other",[1316,2571,2572,828,2574,828,2577],{},[312,2573,383],{},[312,2575,2576],{},"bytes",[312,2578,2579],{},"geometry",[2024,2581,2582,2583,2585,2586,2588,2589,2591,2592,2595],{},"Unsigned integer types (",[312,2584,2499],{},"–",[312,2587,2508],{},") and ",[312,2590,2579],{}," are part of the format but cannot currently be applied to a data source — a migration that uses them fails. Introspection may also report a field as ",[312,2593,2594],{},"unsupported"," when Monospace does not model its type; you cannot author that type.",[303,2597,2599],{"id":2598},"default-values","Default Values",[308,2601,2602,2603,2605,2606,2608,2609,2612],{},"A field's ",[312,2604,1180],{}," is ",[312,2607,669],{}," for no default, or an object tagged by ",[312,2610,2611],{},"source",". Two sources exist.",[367,2614,2616],{"id":2615},"engine-managed-defaults","Engine-Managed Defaults",[308,2618,2619],{},"An engine-managed default resolves a value whenever the field is omitted from a write. It fills the gap — it never overrides a value the caller provides.",[308,2621,2622,2623,330,2626,2628],{},"Defaults resolve per write phase. ",[312,2624,2625],{},"onCreate",[312,2627,2029],{}," are independent and each optional.",[1291,2630,2631,2641],{},[1294,2632,2633],{},[1297,2634,2635,2638],{},[1300,2636,2637],{},"Field",[1300,2639,2640],{},"Applies when",[1311,2642,2643,2652],{},[1297,2644,2645,2649],{},[1316,2646,2647],{},[312,2648,2625],{},[1316,2650,2651],{},"The field is omitted while creating an item",[1297,2653,2654,2658],{},[1316,2655,2656],{},[312,2657,2029],{},[1316,2659,2660],{},"The field is omitted while updating an item",[308,2662,2663,2664,2666,2667,2669,2670,2673,2674,358],{},"Set only the phase you need. ",[312,2665,2625],{}," alone applies a value on create and leaves updates untouched; ",[312,2668,2029],{}," alone applies a value on update but not on create. An ",[312,2671,2672],{},"engineManaged"," default must set at least one of the two — for no default at all, use ",[312,2675,2676],{},"defaultValue: null",[308,2678,2679,2680,2682,2683,2686,2687,2690],{},"Each phase holds a source object tagged by ",[312,2681,314],{},". Both phases resolve against the field's single type, so keep them consistent — a ",[312,2684,2685],{},"static"," boolean on create paired with a ",[312,2688,2689],{},"currentTimestamp"," on update describes two different types for one field.",[1291,2692,2693,2706],{},[1294,2694,2695],{},[1297,2696,2697,2701,2703],{},[1300,2698,2699],{},[312,2700,314],{},[1300,2702,985],{},[1300,2704,2705],{},"Resolves to",[1311,2707,2708,2722,2737,2749],{},[1297,2709,2710,2714,2719],{},[1316,2711,2712],{},[312,2713,2685],{},[1316,2715,2716],{},[312,2717,2718],{},"valueEncoded",[1316,2720,2721],{},"A literal value, encoded as JSON",[1297,2723,2724,2728,2731],{},[1316,2725,2726],{},[312,2727,2689],{},[1316,2729,2730],{},"—",[1316,2732,2733,2734,1166],{},"The write time (",[312,2735,2736],{},"now()",[1297,2738,2739,2744,2746],{},[1316,2740,2741],{},[312,2742,2743],{},"currentUser",[1316,2745,2730],{},[1316,2747,2748],{},"The authenticated user's key",[1297,2750,2751,2756,2767],{},[1316,2752,2753],{},[312,2754,2755],{},"randomUuid",[1316,2757,2758,1631,2761,1001,2764,1166],{},[312,2759,2760],{},"version",[312,2762,2763],{},"v4",[312,2765,2766],{},"v7",[1316,2768,2769],{},"A newly generated UUID",[2024,2771,2772,2773,2775,2776,2778,2779,828,2781,828,2783,1627,2785,2787,2788,330,2790,2792,2793,2795],{},"Defaults are not supported on list fields. A ",[312,2774,2685],{}," value must be compatible with the field's type. ",[312,2777,2689],{}," requires a ",[312,2780,2555],{},[312,2782,2558],{},[312,2784,2561],{},[312,2786,2564],{}," field. ",[312,2789,2743],{},[312,2791,2755],{}," require a ",[312,2794,2535],{}," field.",[308,2797,2798,2800,2801,2803,2804,2806,2807,358],{},[312,2799,2718],{}," does not preserve the value's type. Monospace coerces it using the field's type while applying the write, so ",[312,2802,2461],{}," supplied for a ",[312,2805,2339],{}," field becomes ",[312,2808,2809],{},"\"2\"",[308,2811,2812,2813,2815],{},"Set ",[312,2814,2625],{}," alone for a value fixed at insert time.",[308,2817,2818,2819,2822,2823,2826],{},"A ",[312,2820,2821],{},"status"," field that starts at ",[312,2824,2825],{},"\"draft\"",":",[378,2828,2831],{"className":380,"code":2829,"filename":2830,"language":383,"meta":384,"style":384},"{ \"source\": \"engineManaged\", \"onCreate\": { \"kind\": \"static\", \"valueEncoded\": \"draft\" } }\n","defaultValue.json",[312,2832,2833],{"__ignoreMap":384},[388,2834,2835,2837,2840,2842,2845,2847,2850,2852,2854,2856,2859,2861,2864,2866,2868],{"class":390,"line":391},[388,2836,2358],{"class":394},[388,2838,2839],{"class":401},"\"source\"",[388,2841,405],{"class":394},[388,2843,2844],{"class":408},"\"engineManaged\"",[388,2846,828],{"class":394},[388,2848,2849],{"class":401},"\"onCreate\"",[388,2851,572],{"class":394},[388,2853,1249],{"class":401},[388,2855,405],{"class":394},[388,2857,2858],{"class":408},"\"static\"",[388,2860,828],{"class":394},[388,2862,2863],{"class":401},"\"valueEncoded\"",[388,2865,405],{"class":394},[388,2867,2825],{"class":408},[388,2869,1271],{"class":394},[308,2871,2818,2872,2875],{},[312,2873,2874],{},"created_at"," field stamped once, when the item is created:",[378,2877,2879],{"className":380,"code":2878,"filename":2830,"language":383,"meta":384,"style":384},"{ \"source\": \"engineManaged\", \"onCreate\": { \"kind\": \"currentTimestamp\" } }\n",[312,2880,2881],{"__ignoreMap":384},[388,2882,2883,2885,2887,2889,2891,2893,2895,2897,2899,2901,2904],{"class":390,"line":391},[388,2884,2358],{"class":394},[388,2886,2839],{"class":401},[388,2888,405],{"class":394},[388,2890,2844],{"class":408},[388,2892,828],{"class":394},[388,2894,2849],{"class":401},[388,2896,572],{"class":394},[388,2898,1249],{"class":401},[388,2900,405],{"class":394},[388,2902,2903],{"class":408},"\"currentTimestamp\"",[388,2905,1271],{"class":394},[308,2907,2818,2908,2911],{},[312,2909,2910],{},"created_by"," field set to whoever creates the item:",[378,2913,2915],{"className":380,"code":2914,"filename":2830,"language":383,"meta":384,"style":384},"{ \"source\": \"engineManaged\", \"onCreate\": { \"kind\": \"currentUser\" } }\n",[312,2916,2917],{"__ignoreMap":384},[388,2918,2919,2921,2923,2925,2927,2929,2931,2933,2935,2937,2940],{"class":390,"line":391},[388,2920,2358],{"class":394},[388,2922,2839],{"class":401},[388,2924,405],{"class":394},[388,2926,2844],{"class":408},[388,2928,828],{"class":394},[388,2930,2849],{"class":401},[388,2932,572],{"class":394},[388,2934,1249],{"class":401},[388,2936,405],{"class":394},[388,2938,2939],{"class":408},"\"currentUser\"",[388,2941,1271],{"class":394},[308,2943,2944,2945,2947],{},"An ",[312,2946,325],{}," field that receives a UUID v7 when the item is created:",[378,2949,2951],{"className":380,"code":2950,"filename":2830,"language":383,"meta":384,"style":384},"{ \"source\": \"engineManaged\", \"onCreate\": { \"kind\": \"randomUuid\", \"version\": \"v7\" } }\n",[312,2952,2953],{"__ignoreMap":384},[388,2954,2955,2957,2959,2961,2963,2965,2967,2969,2971,2973,2976,2978,2981,2983,2986],{"class":390,"line":391},[388,2956,2358],{"class":394},[388,2958,2839],{"class":401},[388,2960,405],{"class":394},[388,2962,2844],{"class":408},[388,2964,828],{"class":394},[388,2966,2849],{"class":401},[388,2968,572],{"class":394},[388,2970,1249],{"class":401},[388,2972,405],{"class":394},[388,2974,2975],{"class":408},"\"randomUuid\"",[388,2977,828],{"class":394},[388,2979,2980],{"class":401},"\"version\"",[388,2982,405],{"class":394},[388,2984,2985],{"class":408},"\"v7\"",[388,2987,1271],{"class":394},[308,2989,2990],{},"Set both phases to keep a field current on every write — this is what the phase split buys you.",[308,2992,2944,2993,2996],{},[312,2994,2995],{},"updated_at"," field stamped on create and refreshed on each later update:",[378,2998,3000],{"className":380,"code":2999,"filename":2830,"language":383,"meta":384,"style":384},"{\n  \"source\": \"engineManaged\",\n  \"onCreate\": { \"kind\": \"currentTimestamp\" },\n  \"onUpdate\": { \"kind\": \"currentTimestamp\" }\n}\n",[312,3001,3002,3006,3017,3033,3048],{"__ignoreMap":384},[388,3003,3004],{"class":390,"line":391},[388,3005,395],{"class":394},[388,3007,3008,3011,3013,3015],{"class":390,"line":398},[388,3009,3010],{"class":401},"  \"source\"",[388,3012,405],{"class":394},[388,3014,2844],{"class":408},[388,3016,412],{"class":394},[388,3018,3019,3022,3024,3026,3028,3030],{"class":390,"line":415},[388,3020,3021],{"class":401},"  \"onCreate\"",[388,3023,572],{"class":394},[388,3025,1249],{"class":401},[388,3027,405],{"class":394},[388,3029,2903],{"class":408},[388,3031,3032],{"class":394}," },\n",[388,3034,3035,3038,3040,3042,3044,3046],{"class":390,"line":424},[388,3036,3037],{"class":401},"  \"onUpdate\"",[388,3039,572],{"class":394},[388,3041,1249],{"class":401},[388,3043,405],{"class":394},[388,3045,2903],{"class":408},[388,3047,582],{"class":394},[388,3049,3050],{"class":390,"line":437},[388,3051,470],{"class":394},[308,3053,2944,3054,3057],{},[312,3055,3056],{},"updated_by"," field set to the creator, then to whoever updates the item next:",[378,3059,3061],{"className":380,"code":3060,"filename":2830,"language":383,"meta":384,"style":384},"{\n  \"source\": \"engineManaged\",\n  \"onCreate\": { \"kind\": \"currentUser\" },\n  \"onUpdate\": { \"kind\": \"currentUser\" }\n}\n",[312,3062,3063,3067,3077,3091,3105],{"__ignoreMap":384},[388,3064,3065],{"class":390,"line":391},[388,3066,395],{"class":394},[388,3068,3069,3071,3073,3075],{"class":390,"line":398},[388,3070,3010],{"class":401},[388,3072,405],{"class":394},[388,3074,2844],{"class":408},[388,3076,412],{"class":394},[388,3078,3079,3081,3083,3085,3087,3089],{"class":390,"line":415},[388,3080,3021],{"class":401},[388,3082,572],{"class":394},[388,3084,1249],{"class":401},[388,3086,405],{"class":394},[388,3088,2939],{"class":408},[388,3090,3032],{"class":394},[388,3092,3093,3095,3097,3099,3101,3103],{"class":390,"line":424},[388,3094,3037],{"class":401},[388,3096,572],{"class":394},[388,3098,1249],{"class":401},[388,3100,405],{"class":394},[388,3102,2939],{"class":408},[388,3104,582],{"class":394},[388,3106,3107],{"class":390,"line":437},[388,3108,470],{"class":394},[367,3110,3112],{"id":3111},"connector-managed-defaults","Connector-Managed Defaults",[308,3114,3115],{},"The data source owns the value, as with autoincrement, serial, or identity fields. Introspection reports these; you rarely author them.",[378,3117,3119],{"className":380,"code":3118,"filename":2830,"language":383,"meta":384,"style":384},"{ \"source\": \"connectorManaged\", \"isAutoincrement\": true }\n",[312,3120,3121],{"__ignoreMap":384},[388,3122,3123,3125,3127,3129,3132,3134,3137,3139,3141],{"class":390,"line":391},[388,3124,2358],{"class":394},[388,3126,2839],{"class":401},[388,3128,405],{"class":394},[388,3130,3131],{"class":408},"\"connectorManaged\"",[388,3133,828],{"class":394},[388,3135,3136],{"class":401},"\"isAutoincrement\"",[388,3138,405],{"class":394},[388,3140,1174],{"class":668},[388,3142,582],{"class":394},[308,3144,3145,2605,3148,3150,3151,3153],{},[312,3146,3147],{},"isAutoincrement",[312,3149,1174],{}," for autoincrement fields, or ",[312,3152,669],{}," when the connector does not report it.",[303,3155,3157],{"id":3156},"see-also","See Also",[714,3159,3160,3166,3172,3179],{},[717,3161,3162,3165],{},[746,3163,244],{"href":3164},"\u002Freference\u002Fapi-reference\u002Fschema-migration\u002Fapply-migrations"," — send these operations to a project",[717,3167,3168,3171],{},[746,3169,249],{"href":3170},"\u002Freference\u002Fapi-reference\u002Fschema-migration\u002Fimport-changes"," — read operations returned by a diff",[717,3173,3174,3178],{},[746,3175,3177],{"href":3176},"\u002Freference\u002Fdata-types","Data Types"," — how these types map to database types",[717,3180,3181,3185],{},[746,3182,3184],{"href":3183},"\u002Freference\u002Fapi-reference\u002Fschema-migration","Schema Migration Overview"," — authentication, format, and error codes",[3187,3188,3189],"style",{},"html pre.shiki code .sTMul, html code.shiki .sTMul{--shiki-light:#1F2937;--shiki-default:#1F2937;--shiki-dark:#94A3B8}html pre.shiki code .snHjA, html code.shiki .snHjA{--shiki-light:#124BC4;--shiki-default:#124BC4;--shiki-dark:#5B8EF4}html pre.shiki code .suKVh, html code.shiki .suKVh{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#F8FAFC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .ssBNi, html code.shiki .ssBNi{--shiki-light:#1659E9;--shiki-default:#1659E9;--shiki-dark:#94B3F5}",{"title":384,"searchDepth":398,"depth":398,"links":3191},[3192,3193,3198,3204,3210,3214,3220,3221,3225],{"id":305,"depth":398,"text":306},{"id":361,"depth":398,"text":362,"children":3194},[3195,3196,3197],{"id":369,"depth":415,"text":370},{"id":473,"depth":415,"text":474},{"id":538,"depth":415,"text":539},{"id":589,"depth":398,"text":590,"children":3199},[3200,3201,3202,3203],{"id":605,"depth":415,"text":606},{"id":761,"depth":415,"text":762},{"id":854,"depth":415,"text":855},{"id":936,"depth":415,"text":937},{"id":984,"depth":398,"text":985,"children":3205},[3206,3207,3208,3209],{"id":1014,"depth":415,"text":1015},{"id":1192,"depth":415,"text":1193},{"id":1378,"depth":415,"text":1379},{"id":1425,"depth":415,"text":1426},{"id":1505,"depth":398,"text":1506,"children":3211},[3212,3213],{"id":1523,"depth":415,"text":1524},{"id":1637,"depth":415,"text":1638},{"id":1684,"depth":398,"text":1685,"children":3215},[3216,3217,3218,3219],{"id":1698,"depth":415,"text":1699},{"id":2113,"depth":415,"text":2114},{"id":2197,"depth":415,"text":2198},{"id":2260,"depth":415,"text":2261},{"id":2326,"depth":398,"text":1165},{"id":2598,"depth":398,"text":2599,"children":3222},[3223,3224],{"id":2615,"depth":415,"text":2616},{"id":3111,"depth":415,"text":3112},{"id":3156,"depth":398,"text":3157},"The schema migration operations, grouped by the model entity they act on.","md",null,{},{"icon":257},{"title":254,"description":3226},"4UBJh3EiZpMQt0fpRjFpo0FWFkrlYYmrQg65K6BH__E",[3234,3236],{"title":249,"path":250,"stem":251,"description":3235,"icon":252,"children":-1},"Reconcile a project with schema changes made directly in a data source using the introspect endpoint.",{"title":114,"path":264,"stem":265,"description":3237,"icon":266,"children":-1},"Known issues and common pitfalls when working with Monospace.",1789461508380]