mirror of
https://github.com/GrassrootsEconomics/cic-dw.git
synced 2024-11-14 03:46:46 +01:00
Mohamed Sohail
77f127e14a
* feat: add admin/auth api - jwt cookie based auth - /auth - admin/* * add: meta proxy * fix: remove ussd account status from syncer * add: cookie defaults and nuxt init check route * add: pin and address handlers
13 lines
382 B
SQL
13 lines
382 B
SQL
-- Drop static columns on user table
|
|
ALTER TABLE users DROP COLUMN failed_pin_attempts, DROP COLUMN ussd_account_status;
|
|
|
|
-- Staff dashboard auth
|
|
CREATE TABLE IF NOT EXISTS staff (
|
|
id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
|
username VARCHAR(16) NOT NULL UNIQUE,
|
|
password_hash VARCHAR(76) NOT NULL
|
|
)
|
|
|
|
---- create above / drop below ----
|
|
|
|
DROP TABLE IF EXISTS staff; |