Skip to content

Commit 3a02109

Browse files
Merge pull request #71 from directus/DX-504
Adding geospatial datatypes
2 parents 5199e2e + fbc70a8 commit 3a02109

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

content/2.data-modeling/3.fields.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ Fields are database columns with additional metadata and configuration used by D
1010

1111
Directus supports various databases, though each vendor has their own simple data types. To standardize these differences, Directus has a single set of types that are mapped to the vendor-specific ones.
1212

13-
| Group | Types |
14-
| ------------- | -------------------------------------------- |
15-
| Text | `String`, `Text`, `UUID`, `Hash`, `Alias` |
16-
| Numeric | `Integer`, `Big Integer`, `Float`, `Decimal` |
17-
| Boolean | `Boolean` |
18-
| Date and Time | `Timestamp`, `DateTime`, `Date`, `Time` |
19-
| Binary | `Binary` |
20-
| Structured | `JSON`, `CSV` |
13+
| Group | Types |
14+
| ------------- | --------------------------------------------------------------------------------- |
15+
| Text | `String`, `Text`, `UUID`, `Hash`, `Alias` |
16+
| Numeric | `Integer`, `Big Integer`, `Float`, `Decimal` |
17+
| Boolean | `Boolean` |
18+
| Date and Time | `Timestamp`, `DateTime`, `Date`, `Time` |
19+
| Binary | `Binary` |
20+
| Structured | `JSON`, `CSV` |
21+
| Geospatial | `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`, `MultiPolygon` |
2122

2223
Fields that do not map directly to an actual database column are called "alias" fields, and include presentational fields and certain relational fields.
2324

25+
Geospatial fields are used to store data in [GeoJSON](https://geojson.org/) format. These types are only supported if your database supports spatial extensions.
26+
2427
## Creating Fields
2528

2629
When creating a new field, you must first select an [interface](/data-modeling/interfaces) and provide some basic configuration. Basic configuration will depend on the interface selected, but all fields have some common characteristics.

0 commit comments

Comments
 (0)