Files
ysj7705andCursor 0fd00bfa37 Add Docker Registry AIO with Nuxt Token Auth and admin UI.
Compose brings up registry:3 plus a Prisma/SQLite Nuxt app for docker login, ACL management, and image browsing with shadcn-vue.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 16:12:12 +09:00

37 lines
759 B
Plaintext

generator client {
provider = "prisma-client"
output = "../generated/prisma"
}
datasource db {
provider = "sqlite"
}
enum Role {
ADMIN
USER
}
model User {
id String @id @default(cuid())
username String @unique
passwordHash String
role Role @default(USER)
active Boolean @default(true)
acls Acl[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Acl {
id String @id @default(cuid())
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
repository String
canPull Boolean @default(true)
canPush Boolean @default(false)
canDelete Boolean @default(false)
@@index([userId])
}