feat-postgres (#1)
Some checks failed
CI / Linux Tests (push) Failing after 5m44s

Store timestamps as strings in the database to fix errors with postgres.

Reviewed-on: #1
Co-authored-by: Michael Housh <michael@mhoush.com>
Co-committed-by: Michael Housh <michael@mhoush.com>
This commit was merged in pull request #1.
This commit is contained in:
2026-02-11 21:51:52 +00:00
committed by Gitea
parent e3a731e3fa
commit a10f3ef0f5
14 changed files with 63 additions and 27 deletions

View File

@@ -76,8 +76,8 @@ extension User {
.id()
.field("email", .string, .required)
.field("password_hash", .string, .required)
.field("createdAt", .datetime)
.field("updatedAt", .datetime)
.field("createdAt", .string)
.field("updatedAt", .string)
.unique(on: "email")
.create()
}
@@ -97,8 +97,8 @@ extension User.Token {
.id()
.field("value", .string, .required)
.field("user_id", .uuid, .required, .references(UserModel.schema, "id"))
.field("createdAt", .datetime)
.field("updatedAt", .datetime)
.field("createdAt", .string)
.field("updatedAt", .string)
.unique(on: "value")
.create()
}