Skip to content

Commit 9ecef70

Browse files
committed
move lastactive field to server table....
1 parent 6f0c44b commit 9ecef70

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `lastActive` on the `User` table. All the data in the column will be lost.
5+
6+
*/
7+
-- AlterTable
8+
ALTER TABLE "Server" ADD COLUMN "lastActive" TIMESTAMP(3);
9+
10+
-- AlterTable
11+
ALTER TABLE "User" DROP COLUMN "lastActive";

prisma/schema.prisma

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ model User {
3333
createdAt DateTime @default(now())
3434
updatedAt DateTime @updatedAt
3535
deletedAt DateTime?
36-
lastActive DateTime?
3736
}
3837

3938
model GitHub {
@@ -82,6 +81,7 @@ model Server {
8281
active Boolean
8382
updatedAt DateTime @updatedAt
8483
deletedAt DateTime?
84+
lastActive DateTime?
8585
omp Boolean @default(false)
8686
partner Boolean @default(false)
8787
pending Boolean @default(false)

0 commit comments

Comments
 (0)