NotFound error and add validation

This commit is contained in:
2023-05-07 19:50:44 -04:00
parent de157a3b1e
commit f30be5f451
3 changed files with 26 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
CREATE TABLE IF NOT EXISTS "items" (
"id" SERIAL PRIMARY KEY NOT NULL,
"title" VARCHAR(255) NOT NULL,
"url" VARCHAR(255) NOT NULL,
"description" VARCHAR(255),
"url" VARCHAR(2048) NOT NULL,
"description" TEXT,
"created_at" timestamp(3) NOT NULL,
"updated_at" timestamp(3) NOT NULL,
"deleted_at" timestamp(3)