docs: add table of contents to all Ecto pattern files
This commit is contained in:
@@ -2,6 +2,17 @@
|
||||
|
||||
Patterns extracted from `lib/ecto/schema.ex` in the Ecto source.
|
||||
|
||||
## Contents
|
||||
|
||||
1. [Base Schema Module — App-Wide Schema Defaults](#1-base-schema-module--app-wide-schema-defaults)
|
||||
2. [`@primary_key false` — Composite or No Primary Key](#2-primary_key-false--composite-or-no-primary-key)
|
||||
3. [Virtual Fields — In-Memory-Only Data](#3-virtual-fields--in-memory-only-data)
|
||||
4. [`embedded_schema/1` — Schemaless Validation Structs](#4-embedded_schema1--schemaless-validation-structs)
|
||||
5. [`@timestamps_opts` — Consistent Timestamp Types](#5-timestamps_opts--consistent-timestamp-types)
|
||||
6. [Field `:source` Option — Column Name Mapping](#6-field-source-option--column-name-mapping)
|
||||
7. [`redact: true` — Protecting Sensitive Fields](#7-redact-true--protecting-sensitive-fields)
|
||||
8. [`__schema__/1` Reflection — Runtime Schema Introspection](#8-__schema__1-reflection--runtime-schema-introspection)
|
||||
|
||||
---
|
||||
|
||||
## 1. Base Schema Module — App-Wide Schema Defaults
|
||||
|
||||
Reference in New Issue
Block a user