# \#data\_schema

**URL:** https://forum.elixirforum.com/tag/data-schema/3035.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Draft - enforce typed structs and validation rules with draft schema](https://forum.elixirforum.com/t/draft-enforce-typed-structs-and-validation-rules-with-draft-schema/74631)

<div class="topic-metadata">

**Author:** [@2p4b](https://forum.elixirforum.com/u/2p4b)\
**Replies:** 2\
**Last updated:** [March 25, 2026, 6:17am UTC](https://forum.elixirforum.com/t/draft-enforce-typed-structs-and-validation-rules-with-draft-schema/74631 "2026-03-25T06:17:08Z")

</div>

Define typed structs with built-in validation. Draft allows developers to describe the structure of data and enforce constraints when constructing structs, helping ensure that invalid data never enters your domain. Inst…

---

## [ExAws.Dynamo.Encoder and Ecto.Schema do not work together](https://forum.elixirforum.com/t/exaws-dynamo-encoder-and-ecto-schema-do-not-work-together/54292)

<div class="topic-metadata">

**Author:** [@michaelwa](https://forum.elixirforum.com/u/michaelwa)\
**Replies:** 5\
**Last updated:** [March 3, 2023, 4:58pm UTC](https://forum.elixirforum.com/t/exaws-dynamo-encoder-and-ecto-schema-do-not-work-together/54292 "2023-03-03T16:58:06Z")

</div>

My mix.exs dependencies (partial list): {:ex\_aws, “~\> 2.1”}, {:ex\_aws\_dynamo, “~\> 4.0”}, {:hackney, “~\> 1.9”}, {:configparser\_ex, “~\> 4.0”}I created an Ecto.Schema: I can create dyanmo tables, insert, update, and de…

---

## [Problem Creating PostGres schema in Ecto migration... and BONUS problems with queries](https://forum.elixirforum.com/t/problem-creating-postgres-schema-in-ecto-migration-and-bonus-problems-with-queries/50821)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 0\
**Last updated:** [October 6, 2022, 9:20pm UTC](https://forum.elixirforum.com/t/problem-creating-postgres-schema-in-ecto-migration-and-bonus-problems-with-queries/50821 "2022-10-06T21:20:18Z")

</div>

I’m going a bit nuts – I’m trying to create an alternate PostGres schema for an app’s tables. The idea is that Ecto can store its migrations stuff inside public, but all of our app’s tables we want in core. So here are…

---

## [Data\_schema - declarative schemas for data transformations](https://forum.elixirforum.com/t/data-schema-declarative-schemas-for-data-transformations/44073)

<div class="topic-metadata">

**Author:** [@Adzz](https://forum.elixirforum.com/u/Adzz)\
**Replies:** 17\
**Last updated:** [September 29, 2022, 9:51pm UTC](https://forum.elixirforum.com/t/data-schema-declarative-schemas-for-data-transformations/44073 "2022-09-29T21:51:46Z")

</div>

Data schemas are declarative descriptions of how to create a struct from some input data. You can set up different schemas to handle different kinds of input data. By default we assume the incoming data is a map, but you…
