mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +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?
|
username String?
|
||||||
email String?
|
email String?
|
||||||
|
expires DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ClientCapabilities {
|
enum ClientCapabilities {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user