Use Datetime
This commit is contained in:
parent
6d018eafa9
commit
34f098f76f
|
@ -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);
|
|
@ -29,7 +29,7 @@ model User {
|
|||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
accountExpires String?
|
||||
badPasswordTime String?
|
||||
badPasswordTime DateTime?
|
||||
badPwdCount String?
|
||||
cn String?
|
||||
department String?
|
||||
|
@ -41,14 +41,14 @@ model User {
|
|||
extensionAttribute10 String?
|
||||
extensionAttribute2 String?
|
||||
extensionAttribute6 String?
|
||||
extensionAttribute7 String?
|
||||
extensionAttribute7 DateTime?
|
||||
givenName String?
|
||||
homeDirectory String?
|
||||
homeDrive String?
|
||||
lastLogoff String?
|
||||
lastLogon String?
|
||||
lastLogonTimestamp String?
|
||||
lockoutTime String?
|
||||
lastLogon DateTime?
|
||||
lastLogonTimestamp DateTime?
|
||||
lockoutTime DateTime?
|
||||
logonCount String?
|
||||
mail String?
|
||||
name String?
|
||||
|
|
Loading…
Reference in New Issue
Block a user