diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-03-21 20:04:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-21 20:04:39 +0000 |
| commit | c9579cb9ca2a6a165d10f128e0af1dfd372e0c03 (patch) | |
| tree | 1d4feecb422aae3cde1cc7cad54ccc73b2dae410 /migrations/2021-03-20-171007_create_users/up.sql | |
| parent | Add TUI, resolve #19, #17, #16 (#21) (diff) | |
| download | atuin-c9579cb9ca2a6a165d10f128e0af1dfd372e0c03.zip | |
Implement server (#23)
* Add initial database and server setup
* Set up all routes, auth, etc
* Implement sessions, password auth, hashing with argon2, and history storage
Diffstat (limited to '')
| -rw-r--r-- | migrations/2021-03-20-171007_create_users/up.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/2021-03-20-171007_create_users/up.sql b/migrations/2021-03-20-171007_create_users/up.sql new file mode 100644 index 00000000..0eecea7c --- /dev/null +++ b/migrations/2021-03-20-171007_create_users/up.sql @@ -0,0 +1,6 @@ +-- Your SQL goes here +create table users ( + id bigserial primary key, -- also store our own ID + email varchar(128) not null unique, -- being able to contact users is useful + password varchar(128) not null unique +); |
