Skip to content
Snippets Groups Projects
Commit 6daafe53 authored by Tamas Bunth's avatar Tamas Bunth
Browse files

No need to create separate table for user

parent aeaeddc2
No related branches found
No related tags found
No related merge requests found
......@@ -65,5 +65,3 @@ You need Java and maven installed. Build & run the server with the following com
mvn spring-boot:run
For the first run, you may have to uncomment `spring.jpa.generate-ddl=true` and comment out `spring.jpa.hibernate.ddl-auto=create-drop`
......@@ -21,18 +21,3 @@ create table "user" (
device_type VARCHAR(255),
primary key (id)
);
\ No newline at end of file
create table "user_user" (
"user_id" int8 not null,
"follows_id" int8 not null
);
alter table "user_user"
add constraint FKl0s7rdd5k82i0xbgm2igjaetj
foreign key ("follows_id")
references "user";
alter table "user_user"
add constraint FK8w8vorfaxyv2c87ga05luvkls
foreign key ("user_id")
references "user";
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment