mirror of https://github.com/vapor/docs.git
Update model.md
This commit is contained in:
parent
62ccea2933
commit
e4590c1cac
|
|
@ -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"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue