chore(invitations): add expires field

This commit is contained in:
DecDuck
2024-11-07 19:06:56 +11:00
parent 7d72a86876
commit be6c30dfee
3 changed files with 10 additions and 0 deletions
@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `expires` to the `Invitation` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Invitation" ADD COLUMN "expires" TIMESTAMP(3) NOT NULL;
+1
View File
@@ -53,6 +53,7 @@ model Invitation {
username String? username String?
email String? email String?
expires DateTime
} }
enum ClientCapabilities { enum ClientCapabilities {
+1
View File
@@ -15,6 +15,7 @@ export default defineNitroPlugin(async (nitro) => {
create: { create: {
id: "admin", id: "admin",
isAdmin: true, isAdmin: true,
expires: new Date('4096-01-01')
}, },
update: { update: {
isAdmin: true, isAdmin: true,