-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
./target/* | ||
target/ | ||
*.iml | ||
.idea/ | ||
demo.iml | ||
*.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
version: '3' | ||
|
||
services: | ||
db: | ||
image: postgres:latest | ||
container_name: emolog_db | ||
volumes: | ||
- ./docker/pg:/docker-entrypoint-initdb.d | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: test_db | ||
ports: | ||
- '5432:5432' | ||
db: | ||
image: postgres:latest | ||
container_name: emolog_db | ||
volumes: | ||
- ./docker/pg:/docker-entrypoint-initdb.d | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: test_db | ||
ports: | ||
- '5432:5432' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,57 @@ | ||
create table users ( | ||
id serial primary key, | ||
name varchar not null, | ||
age integer not null | ||
name varchar(30) not null, | ||
mail varchar(50) not null, | ||
filterlevel smallint | ||
); | ||
|
||
create table friend ( | ||
id serial primary key, | ||
userid INTEGER not null, | ||
friendid INTEGER not null, | ||
name varchar(30) not null, | ||
latestemolog varchar(30) | ||
); | ||
|
||
create table emolog ( | ||
id serial primary key, | ||
userid INTEGER not null, | ||
friendid INTEGER not null, | ||
create_at timestamp, | ||
contents varchar(30) | ||
); | ||
|
||
create table talk ( | ||
id serial primary key, | ||
userid INTEGER not null, | ||
friendid INTEGER not null, | ||
contents varchar(30) | ||
create_at timestamp, | ||
); | ||
|
||
create table requestfriend ( | ||
id serial primary key, | ||
userid INTEGER not null, | ||
requestfriendid INTEGER not null, | ||
contents varchar(30) | ||
create_at timestamp, | ||
); | ||
|
||
create table emojicode ( | ||
keyword serial primary key, | ||
emoji_code | ||
emoji_code | ||
); | ||
|
||
|
||
insert into users(name, mail, filterlevel) values | ||
('ichigo.chocomint', '[email protected]', 1), | ||
('banana.chocomint', '[email protected]', 2), | ||
('pinapple.chocomint', '[email protected]', 3) | ||
; | ||
|
||
|
||
insert into users(name, age) values | ||
('ichigo.chocomint', 99), | ||
('banana.chocomint', 98), | ||
('pinapple.chocomint', 97) | ||
; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters