You've already forked php-auth
generated from siteworxpro/Php-Template
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
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:
@@ -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;
|
||||
@@ -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)
|
||||
);
|
||||
Reference in New Issue
Block a user