mirror of
https://github.com/Noratrieb/karlauth.git
synced 2026-01-14 14:25:02 +01:00
users crud
This commit is contained in:
parent
2f67d81e41
commit
1a8f223d39
13 changed files with 130 additions and 52 deletions
3
migrations/2021-07-16-091329_add_users/down.sql
Normal file
3
migrations/2021-07-16-091329_add_users/down.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
|
||||
DROP TABLE users;
|
||||
10
migrations/2021-07-16-091329_add_users/up.sql
Normal file
10
migrations/2021-07-16-091329_add_users/up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Your SQL goes here
|
||||
|
||||
CREATE TABLE users
|
||||
(
|
||||
id SERIAL NOT NULL PRIMARY KEY,
|
||||
first_name TEXT NOT NULL,
|
||||
last_name TEXT NOT NULL,
|
||||
email TEXT NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue