Skip to content

Commit

Permalink
pushed directly to main lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrwyl committed Mar 27, 2023
1 parent 2edb637 commit c92c241
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SQL/createtables.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
create table if not exists userA
(
id int not null auto_increment primary key,
username varchar(15) unique not null,
username varchar(30) unique not null,
name varchar(30),
password varchar(60) not null,
region varchar(30),
Expand Down Expand Up @@ -30,7 +30,7 @@ create table if not exists game
create table if not exists post
(
id int not null auto_increment primary key,
username varchar(15) not null,
username varchar(30) not null,
gid int not null,
title varchar(512) not null,
postText varchar(512) not null,
Expand All @@ -43,7 +43,7 @@ create table if not exists comment
id int not null auto_increment primary key,
comment_body varchar(512) not null,
post_id int not null,
username varchar(15) not null,
username varchar(30) not null,
foreign key(username) references userA(username) on delete cascade,
foreign key(post_id) references post(id) on delete cascade
);
Expand All @@ -59,7 +59,7 @@ create table if not exists likes

create table if not exists own
(
username varchar(15) not null,
username varchar(30) not null,
gid int not null,
primary key(username, gid),
foreign key(username) references userA(username) on delete cascade,
Expand Down
Binary file modified SQL/test-sample.out.pdf
Binary file not shown.

0 comments on commit c92c241

Please sign in to comment.