Skip to content

Commit

Permalink
Use correct model foreign key definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkidn committed Jul 8, 2020
1 parent 5813084 commit 537ab3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -23,15 +23,15 @@ Refer to [Blueprint's Basic Usage](https://github.com/laravel-shift/blueprint#ba
# draft.yaml
models:
Post:
author_id: id:user
author_id: id foreign:users
title: string:400
content: longtext
published_at: nullable timestamp
relationships:
HasMany: Comment

Comment:
post_id:i
post_id: id foreign
content: longtext
published_at: nullable timestamp
```
Expand Down

0 comments on commit 537ab3b

Please sign in to comment.