Use Datetime

This commit is contained in:
Douglas Barone 2023-10-30 12:38:56 -04:00
parent 6d018eafa9
commit 34f098f76f
2 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,21 @@
/*
Warnings:
- The `badPasswordTime` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `extensionAttribute7` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lastLogon` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lastLogonTimestamp` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lockoutTime` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "badPasswordTime",
ADD COLUMN "badPasswordTime" TIMESTAMP(3),
DROP COLUMN "extensionAttribute7",
ADD COLUMN "extensionAttribute7" TIMESTAMP(3),
DROP COLUMN "lastLogon",
ADD COLUMN "lastLogon" TIMESTAMP(3),
DROP COLUMN "lastLogonTimestamp",
ADD COLUMN "lastLogonTimestamp" TIMESTAMP(3),
DROP COLUMN "lockoutTime",
ADD COLUMN "lockoutTime" TIMESTAMP(3);

View File

@ -29,7 +29,7 @@ model User {
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
accountExpires String? accountExpires String?
badPasswordTime String? badPasswordTime DateTime?
badPwdCount String? badPwdCount String?
cn String? cn String?
department String? department String?
@ -41,14 +41,14 @@ model User {
extensionAttribute10 String? extensionAttribute10 String?
extensionAttribute2 String? extensionAttribute2 String?
extensionAttribute6 String? extensionAttribute6 String?
extensionAttribute7 String? extensionAttribute7 DateTime?
givenName String? givenName String?
homeDirectory String? homeDirectory String?
homeDrive String? homeDrive String?
lastLogoff String? lastLogoff String?
lastLogon String? lastLogon DateTime?
lastLogonTimestamp String? lastLogonTimestamp DateTime?
lockoutTime String? lockoutTime DateTime?
logonCount String? logonCount String?
mail String? mail String?
name String? name String?