Add item creation and "get all" endpoints.

This commit is contained in:
Florian THIERRY committed 2025-09-18 17:33:27 +02:00
1 parent 076a224bcc
commit 4617f950bf
9 files changed
+62 -6

No files matched your search

+14
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
);