Merge pull request #23 from nodes-vapor/master

Added entity override doc
This commit is contained in:
Tanner 2016-09-02 21:18:27 -04:00 committed by GitHub
commit d8c5538d72
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"
```