You've already forked php-auth
generated from siteworxpro/Php-Template
All checks were successful
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in -21s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in -22s
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in -12s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in -20s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in -14s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in -36s
14 lines
460 B
SQL
14 lines
460 B
SQL
create table audit_logs
|
|
(
|
|
id VARCHAR(26) not null
|
|
constraint audit_logs_pkey
|
|
primary key,
|
|
user_id varchar(26) default null,
|
|
action varchar(255) not null,
|
|
timestamp timestamptz default current_timestamp,
|
|
details jsonb
|
|
);
|
|
|
|
create index idx_audit_logs_action on audit_logs (action);
|
|
create index idx_audit_logs_user_id on audit_logs (user_id);
|
|
create index idx_audit_logs_timestamp on audit_logs (timestamp); |