mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
chore(invitations): add expires field
This commit is contained in:
@ -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;
|
||||
@ -53,6 +53,7 @@ model Invitation {
|
||||
|
||||
username String?
|
||||
email String?
|
||||
expires DateTime
|
||||
}
|
||||
|
||||
enum ClientCapabilities {
|
||||
|
||||
@ -15,6 +15,7 @@ export default defineNitroPlugin(async (nitro) => {
|
||||
create: {
|
||||
id: "admin",
|
||||
isAdmin: true,
|
||||
expires: new Date('4096-01-01')
|
||||
},
|
||||
update: {
|
||||
isAdmin: true,
|
||||
|
||||
Reference in New Issue
Block a user