Update model.md

This commit is contained in:
Casper Rasmussen 2016-09-01 19:33:52 +02:00 committed by GitHub
parent 62ccea2933
commit e4590c1cac
1 changed files with 5 additions and 1 deletions

View File

@ -211,6 +211,10 @@ public protocol Model: Entity, JSONRepresentable, StringInitializable, ResponseR
As can be seen in the protocol, Vapor models can automatically convert to `JSON`, `Response`, and even be used in type-safe routing.
## Options
Change the table/collection name
```swift
static var entity = "new_name"
```