X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2Fstatusnet_pg.sql;h=0e5e96c327ed718ff4f597f831edf8181bcfd0c7;hb=b9d40f723bce8e01ddcbbb989bd7035b92cd9af8;hp=672877ddf0bac25ba3bdfdbcb0c18e8a14460470;hpb=a535ccdc4eba320ad88dc531329ae63c7f09c258;p=quix0rs-gnu-social.git diff --git a/db/statusnet_pg.sql b/db/statusnet_pg.sql index 672877ddf0..0e5e96c327 100644 --- a/db/statusnet_pg.sql +++ b/db/statusnet_pg.sql @@ -569,3 +569,13 @@ create table user_role ( primary key (user_id, role) ); + +create table login_token ( + user_id integer not null /* comment 'user owning this token'*/ references user (id), + token char(32) not null /* comment 'token useable for logging in'*/, + created timestamp not null DEFAULT CURRENT_TIMESTAMP /* comment 'date this record was created'*/, + modified timestamp /* comment 'date this record was modified'*/, + + constraint primary key (user_id) +); +