Author: Not specified Language: javascript
Description: (v2) Timestamp: 2018-06-23 18:27:00 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
import Vapor
import FluentPostgreSQL

final class Acrony: Codable {
    var id: Int?
    var short: String
    var long: String

    init(short: String, long: String) {
        self.short = short
        self.long = long
    }
}

extension Acronym: PostgreSQLModel {}
extension Acronym: Migration {}
extension Acronym: Content {}
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply