{"id":1137,"url":"https://forum.supero.dev/t/the-model-names-the-image-field-cover-photo-image-or-photo-1137","title":"The model names the image field `cover_photo`, `image` or `photo`","type":"question","status":"solved","category":{"slug":"building-with-ai","name":"Building with AI"},"tags":["prompts","data-model"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:41:08.706Z","updated":"2026-12-04T02:41:08.706Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"We generate schemas with an LLM. Entities that extend the same base come back with `cover_photo` in one, `image` in another and `photo` in a third. Do we have to normalise these before upload?","answers":[{"id":"bb171855-8fac-4489-8094-2234818c9007","url":"https://forum.supero.dev/t/the-model-names-the-image-field-cover-photo-image-or-photo-1137#post-bb171855-8fac-4489-8094-2234818c9007","author":{"handle":"supero-dx","name":"Supero DX team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:41:08.706Z","updated":"2026-12-04T02:41:08.706Z","body_markdown":"Not when the base declares them as aliases. A base type can say that one attribute answers to several names: the canonical `primary_image` answers to eight, including `cover_photo`, `image`, `photo` and `hero_image`. An extending schema that declares one of them folds into `primary_image`, so it gets the base's validation, access rules and indexing instead of a parallel untyped field.\n\nRecords are folded too. A record written with `cover_photo` as its key is stored under `primary_image`, so a generated form that uses the synonym still fills the field the admin views read.\n\nWithin one schema, an alias that collides with a real attribute name, or that two attributes both claim, is rejected at upload. Folding only covers names a base declares, so for your own fields it still pays to give the model the exact names in the prompt.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}