Add item creation and "get all" endpoints.

This commit is contained in:
Florian THIERRY
2025-09-18 17:17:44 +02:00
parent 076a224bcc
commit 4617f950bf
9 changed files with 62 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
\c virtual_threads_db;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE IF NOT EXISTS catalog (
id UUID NOT NULL PRIMARY KEY,
name VARCHAR NOT NULL
);
CREATE TABLE IF NOT EXISTS item (
id UUID NOT NULL PRIMARY KEY,
name VARCHAR NOT NULL,
shared_date TIMESTAMP WITH TIME ZONE NULL
);