-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create database gira; | ||
|
||
create table usuarios( | ||
id serial primary key, | ||
nome varchar(50) not null, | ||
email varchar(50) unique not null, | ||
senha varchar(255) not null, | ||
criado_em timestamp default now() | ||
); | ||
|
||
create table conexoes ( | ||
usuario_id integer not null references usuario(id), | ||
seguidor_id integer not null references usuario(id), | ||
criado_em timestamp default now() | ||
); | ||
|
||
create table posts( | ||
id serial primary key, | ||
conteudo text not null, | ||
criado_em timestamp default now(), | ||
usuario_id integer references usuario(id) | ||
); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.