mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-28 04:45:36 -04:00
auth: learning express auth
This commit is contained in:
parent
0647b4af89
commit
518abdc55e
6 changed files with 363 additions and 0 deletions
14
auth-expressjs/migrations/init.sql
Normal file
14
auth-expressjs/migrations/init.sql
Normal file
|
@ -0,0 +1,14 @@
|
|||
CREATE TABLE IF NOT EXISTS users (
|
||||
id INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||
username VARCHAR ( 255 ),
|
||||
password VARCHAR (255)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS federated_credentials (
|
||||
user_id INTEGER NOT NULL,
|
||||
provider TEXT NOT NULL,
|
||||
subject TEXT NOT NULL,
|
||||
PRIMARY KEY (provider, subject)
|
||||
);
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue