more updates
Some checks failed
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 2m25s
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 2m35s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Failing after 2m45s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 2m36s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Failing after 2m25s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 1m10s

This commit is contained in:
2026-01-02 13:57:41 -05:00
parent d0cee7b48f
commit b5b6caa400
20 changed files with 1251 additions and 872 deletions

View File

@@ -3,4 +3,5 @@ drop table if exists client_scopes;
drop table if exists scopes;
drop table if exists client_redirect_uris;
drop table if exists clients;
drop table if exists users;
drop table if exists users;
drop table if exists user_scopes;

View File

@@ -38,7 +38,9 @@ create table scopes
name varchar not null
constraint scopes_name_key
unique,
description varchar
description varchar not null,
created_at timestamp default now(),
updated_at timestamp default now()
);
create table client_scopes
@@ -89,3 +91,20 @@ create table client_users
constraint client_users_client_id_user_id_key
unique (client_id, user_id)
);
create table user_scopes
(
id VARCHAR(26) not null
constraint user_scopes_pk
primary key,
user_id VARCHAR(26) not null
constraint user_scopes_user_id_fk
references users
on delete cascade,
scope_id VARCHAR(26) not null
constraint user_scopes_scope_id_fk
references scopes
on delete cascade,
constraint user_scopes_user_id_scope_id_key
unique (user_id, scope_id)
);