Last additions

This commit is contained in:
Marko Korhonen 2020-05-09 21:12:26 +03:00
parent 015c5db775
commit 09c2cf0074
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
12 changed files with 104 additions and 34 deletions

1
tex/code/cors-header Normal file
View file

@ -0,0 +1 @@
Access-Control-Allow-Origin: http://palvelin2.fi

1
tex/code/down.sql Normal file
View file

@ -0,0 +1 @@
DROP TABLE users;

8
tex/code/up.sql Normal file
View file

@ -0,0 +1,8 @@
CREATE TABLE users (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(100) UNIQUE NOT NULL,
`password` varchar(128) NOT NULL,
`admin` boolean NOT NULL,
`created_at` timestamp NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;