From e4590c1cacdcd046088c01de75b8d20ec163e0c7 Mon Sep 17 00:00:00 2001 From: Casper Rasmussen Date: Thu, 1 Sep 2016 19:33:52 +0200 Subject: [PATCH] Update model.md --- fluent/model.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fluent/model.md b/fluent/model.md index 37244d1b..e51880d9 100644 --- a/fluent/model.md +++ b/fluent/model.md @@ -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" +```