Add device linking foundation

This commit is contained in:
diyaa
2026-06-24 20:36:35 +02:00
parent babea87140
commit 9bffb005be
6 changed files with 534 additions and 1 deletions
@@ -0,0 +1,3 @@
ALTER TABLE "devices"
ADD COLUMN "linked_at" TIMESTAMP(3),
ADD COLUMN "relinked_at" TIMESTAMP(3);
+2
View File
@@ -43,6 +43,8 @@ model Device {
deviceName String @map("device_name")
appVersion String @map("app_version")
installTokenHash String @map("install_token_hash")
linkedAt DateTime? @map("linked_at")
relinkedAt DateTime? @map("relinked_at")
tokenHash String? @unique @map("token_hash")
tokenCreatedAt DateTime? @map("token_created_at")
tokenLastUsedAt DateTime? @map("token_last_used_at")