Skip to content
Snippets Groups Projects
Commit 856344ab authored by Gauthier DE MONTEYNARD's avatar Gauthier DE MONTEYNARD
Browse files

creation des premieres tables

parent df99ff91
No related branches found
No related tags found
1 merge request!1Developp
Pipeline #45290 failed
CREATE TABLE public.userb
(
id BIGSERIAL PRIMARY KEY,
name VARCHAR NOT NULL
);
CREATE TABLE public.todo_list
(
id BIGSERIAL PRIMARY KEY,
name VARCHAR NOT NULL,
user_id BIGINT NOT NULL REFERENCES userb (id)
);
CREATE TABLE public.todo
(
id BIGSERIAL PRIMARY KEY,
name VARCHAR NOT NULL,
description VARCHAR,
checked BOOLEAN NOT NULL DEFAULT FALSE,
seller_id BIGINT NOT NULL REFERENCES todo_list (id)
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment