Add item creation and "get all" endpoints.
This commit is contained in:
14
src/main/sql/init_database.sql
Normal file
14
src/main/sql/init_database.sql
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user