-
-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
When utilizing PostgreSQLModel in Vapor 3 the int declared as the id is actually stored as a bigint in postgres according to pgadmin. However you cannot declare id as an Int64/bigint
final class myClass: Codable {
var id: Int?
var name: String
var createdAt: Date?
var updatedAt: Date?
// MARK: Init
init(name: String) {
self.name = name
}
init(id: Int, name: String) {
self.id = id
self.name = name
}
}
if already being stored as a bigint in pg, I purpose just changing the int? to an Int64? to prevent breaking any bigint keys that already exist.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
