]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/08to09_pg.sql
Added 'login' command that gives you a link that can be used to login to the website
[quix0rs-gnu-social.git] / db / 08to09_pg.sql
index 9e37314aa82f92b849ef6fe81cab228f40092ee2..197fcabfdb246c18c93debc3db76b8956803ad22 100644 (file)
@@ -38,3 +38,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)
+);
+