]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/08to09.sql
Added 'login' command that gives you a link that can be used to login to the website
[quix0rs-gnu-social.git] / db / 08to09.sql
index 953e0e5f481a6fcf8d9905fe5eb868c18cc2392e..a0e37f0f14c66c3647231f2071dc6db854a48ec1 100644 (file)
@@ -32,3 +32,13 @@ create table user_role (
     constraint primary key (user_id, role)
 
 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+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 datetime not null comment 'date this record was created',
+    modified timestamp comment 'date this record was modified',
+
+    constraint primary key (user_id)
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+