You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 rivejä
300 B

  1. import Fluent
  2. import Vapor
  3. final class Todo: Model, Content {
  4. static let schema = "todos"
  5. @ID(key: .id)
  6. var id: UUID?
  7. @Field(key: "title")
  8. var title: String
  9. init() { }
  10. init(id: UUID? = nil, title: String) {
  11. self.id = id
  12. self.title = title
  13. }
  14. }