Skip to content

Commit

Permalink
Update data-modeling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
codazzo committed Dec 5, 2019
1 parent f8fe30f commit f3f0c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data-modeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ While this file mostly consists of the data model definition, it is a valid [sch

Models represent the entities of your application domain. They are defined using `model` blocks in the data model. In the [example](#example) data model above, `User`, `Profile`, `Post` and `Category` are models. Here's the `User` model again for reference:

```
```groovy
model User {
id Int @id
createdAt DateTime @default(now())
Expand Down Expand Up @@ -146,7 +146,7 @@ You can see examples of fields on the sample models [above](#examples).

Field names are typically spelled in [camelCase](http://wiki.c2.com/?CamelCase) starting with a lowercase letter.

Technically, a model can be named anything that adheres to this regular expression:
Technically, a field can be named anything that adheres to this regular expression:

```
[A-Za-z_][A-Za-z0-9_]*
Expand Down

0 comments on commit f3f0c4f

Please sign in to comment.