feat (login page): add a sign in / log in page

This commit is contained in:
Pierre Ryssen
2026-03-03 14:47:07 +01:00
parent 7905adb55d
commit 53c5d952b5
19 changed files with 1756 additions and 50 deletions

39
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,39 @@
generator client {
provider = "prisma-client"
output = "../app/generated/prisma"
}
datasource db {
provider = "postgresql"
}
model User {
id String @id @default(cuid())
email String @unique
password String
name String?
role String @default("member")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
accounts TrackedAccount[]
}
model TrackedAccount {
id String @id @default(cuid())
platform String
username String
accountId String
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
snapshots Snapshot[]
createdAt DateTime @default(now())
}
model Snapshot {
id String @id @default(cuid())
accountId String
account TrackedAccount @relation(fields: [accountId], references: [id], onDelete: Cascade)
followers Int
views Int
createdAt DateTime @default(now())
}