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

View File

@ -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;

View File

@ -53,6 +53,7 @@ model Invitation {
username String?
email String?
expires DateTime
}
enum ClientCapabilities {

View File

@ -15,6 +15,7 @@ export default defineNitroPlugin(async (nitro) => {
create: {
id: "admin",
isAdmin: true,
expires: new Date('4096-01-01')
},
update: {
isAdmin: true,