aboutsummaryrefslogtreecommitdiff
path: root/database/init_db.sql
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-12 14:05:54 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-12 14:05:54 +0100
commit3d36847211e37c5aed0a7fdda5c2a00399fdc66e (patch)
treeb2a1475f30fef440283711eb07e14956f6acb5da /database/init_db.sql
parent381aa865bdeb358dc4a63f3f9848055da62abc08 (diff)
social table update
Diffstat (limited to 'database/init_db.sql')
-rw-r--r--database/init_db.sql11
1 files changed, 6 insertions, 5 deletions
diff --git a/database/init_db.sql b/database/init_db.sql
index 2ce8a1e..d05af6e 100644
--- a/database/init_db.sql
+++ b/database/init_db.sql
@@ -38,10 +38,11 @@ create table if not exists games (
);
create table if not exists social (
- user_id text not null,
- friends text,
- blocked text,
- pending text,
- foreign key(user_id) references users(user_id)
+ user_1_id text not null,
+ user_2_id text not null,
+ type text not null,
+ timestamp integer not null,
+ foreign key(user_1_id) references users(user_id),
+ foreign key(user_2_id) references users(user_id)
);