From b38d96dd5cc526e4c04be5ea907c5105ea52e51d Mon Sep 17 00:00:00 2001 From: rasul Date: Wed, 8 Apr 2020 17:10:31 -0500 Subject: [PATCH] put passwords into a separate table --- schema.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/schema.sql b/schema.sql index 2883aca..83b2bc8 100644 --- a/schema.sql +++ b/schema.sql @@ -43,7 +43,6 @@ create table exits ( create table players ( id text not null primary key, name text not null unique, - password text not null, created numeric not null, location text not null, foreign key(location) references rooms(id) @@ -54,3 +53,10 @@ create table connected_players ( player text not null unique, foreign key(player) references players(id) ); + +create table passwords ( + player text not null primary key, + salt text not null, + hash text not null, + foreign key(player) references players(id) +);