mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
update db col max size + add char to url regex
This commit is contained in:
@@ -20,7 +20,7 @@ model User {
|
||||
|
||||
model Category {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
name String @unique @db.VarChar(255)
|
||||
links Link[]
|
||||
nextCategoryId Int @default(0)
|
||||
createdAt DateTime @default(now())
|
||||
@@ -29,8 +29,8 @@ model Category {
|
||||
|
||||
model Link {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
url String
|
||||
name String @db.VarChar(255)
|
||||
url String @db.Text
|
||||
category Category @relation(fields: [categoryId], references: [id])
|
||||
categoryId Int
|
||||
nextLinkId Int @default(0)
|
||||
|
||||
Reference in New Issue
Block a user