first commit

This commit is contained in:
Michael Simard
2020-05-25 20:58:43 -05:00
commit ba9bfd5e6a
13 changed files with 282 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import Fluent
import Vapor
final class Todo: Model, Content {
static let schema = "todos"
@ID(key: .id)
var id: UUID?
@Field(key: "title")
var title: String
init() { }
init(id: UUID? = nil, title: String) {
self.id = id
self.title = title
}
}