mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 15:50:11 -08:00
feat: shorten urls & root path support for everything ever
This commit is contained in:
@@ -108,11 +108,10 @@ model File {
|
||||
size Int
|
||||
type String
|
||||
views Int @default(0)
|
||||
maxViews Int?
|
||||
favorite Boolean @default(false)
|
||||
password String?
|
||||
|
||||
zeroWidthSpace String?
|
||||
|
||||
tags Tag[]
|
||||
|
||||
User User? @relation(fields: [userId], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
||||
@@ -173,15 +172,16 @@ model Url {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
code String
|
||||
vanity String?
|
||||
destination String
|
||||
name String @unique
|
||||
views Int @default(0)
|
||||
|
||||
zeroWidthSpace String?
|
||||
maxViews Int?
|
||||
|
||||
User User? @relation(fields: [userId], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
||||
userId String?
|
||||
|
||||
@@unique([code, vanity])
|
||||
}
|
||||
|
||||
model Metric {
|
||||
|
||||
Reference in New Issue
Block a user