mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
feat: store avatar and user name
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `user` ADD COLUMN `name` VARCHAR(191) NULL AFTER `email`,
|
||||
ADD COLUMN `image` VARCHAR(191) NULL AFTER `name`;
|
||||
@@ -12,9 +12,11 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
google_id String @unique
|
||||
email String @unique
|
||||
id Int @id @default(autoincrement())
|
||||
google_id String @unique
|
||||
email String @unique
|
||||
name String?
|
||||
image String?
|
||||
|
||||
categories Category[]
|
||||
links Link[]
|
||||
|
||||
Reference in New Issue
Block a user