Compare commits
No commits in common. "d5b3128f13bdad19cf99451bdb994387f885d731" and "edb688799883457e40b0cda56a1dc163277e749f" have entirely different histories.
d5b3128f13
...
edb6887998
@ -1 +0,0 @@
|
|||||||
INSERT INTO public.PERSON (person_firstname, person_lastname, person_age, alive, nation_id) VALUES ('lohojequ', 'Vanrokick', 55, true, 1);
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
-- Add UUID extension
|
|
||||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.NATION (
|
|
||||||
nation_id SERIAL UNIQUE,
|
|
||||||
nation_name VARCHAR(50) NOT NULL,
|
|
||||||
PRIMARY KEY (nation_id)
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.PERSON (
|
|
||||||
person_id uuid UNIQUE NOT NULL DEFAULT uuid_generate_v4(),
|
|
||||||
person_firstname VARCHAR(36),
|
|
||||||
person_lastname VARCHAR(36),
|
|
||||||
person_age INTEGER DEFAULT 0 CHECK (person_age >= 0),
|
|
||||||
alive BOOLEAN NOT NULL DEFAULT true,
|
|
||||||
nation_id INTEGER REFERENCES public.NATION(nation_id) ON UPDATE CASCADE,
|
|
||||||
PRIMARY KEY (person_id)
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.WORKORDER (
|
|
||||||
wo_id uuid UNIQUE NOT NULL DEFAULT uuid_generate_v4(),
|
|
||||||
wo_description TEXT,
|
|
||||||
wo_complete BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
person_id uuid NOT NULL REFERENCES public.PERSON(person_id) ON UPDATE CASCADE,
|
|
||||||
PRIMARY KEY (wo_id)
|
|
||||||
);
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
-- User Access And Permissions
|
|
||||||
|
|
||||||
-- Tables
|
|
||||||
CREATE TABLE IF NOT EXISTS public.user (
|
|
||||||
id INTEGER PRIMARY KEY,
|
|
||||||
created_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
updated_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
last_login DATETIME,
|
|
||||||
username VARCHAR(255) NOT NULL,
|
|
||||||
email_id INT NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.email (
|
|
||||||
id TEXT PRIMARY KEY,
|
|
||||||
created_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
updated_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
user_id INT FOREIGN KEY
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.items (
|
|
||||||
id INTEGER PRIMARY KEY,
|
|
||||||
created_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
updated_date DATETIME NOT NULL DEFAULT NOW(),
|
|
||||||
user_id INT FOREIGN KEY
|
|
||||||
img_url TEXT,
|
|
||||||
flavor_text TEXT,
|
|
||||||
stats JSON DEFAULT '{}'
|
|
||||||
);
|
|
||||||
@ -7,7 +7,7 @@ import Col from 'react-bootstrap/Col';
|
|||||||
import SideNav from './sidenav';
|
import SideNav from './sidenav';
|
||||||
import NavBar from './navbar';
|
import NavBar from './navbar';
|
||||||
|
|
||||||
export default function Board() {
|
export default function Board(props) {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Row>
|
<Row>
|
||||||
@ -26,7 +26,7 @@ export default function Board() {
|
|||||||
</Card.Title>
|
</Card.Title>
|
||||||
<Card.Text>
|
<Card.Text>
|
||||||
Some quick example text to build on the card title and make up the
|
Some quick example text to build on the card title and make up the
|
||||||
bulk of the card{"'"}s content.
|
bulk of the card's content.
|
||||||
</Card.Text>
|
</Card.Text>
|
||||||
<Button variant="primary">
|
<Button variant="primary">
|
||||||
Go somewhere
|
Go somewhere
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user