Deleting an account via CLI may not possible as the audit log entries remain:
sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "account" violates foreign key constraint "audit_log_affected_account_id_account_fkey" on table "audit_log" DETAIL: Key (id)=(17) is still referenced from table "audit_log".
We need to start deleting audit_log records when affected_account is being deleted. Probably should use 'ON CASCADE' option
Deleting an account via CLI may not possible as the audit log entries remain:
sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "account" violates foreign key constraint "audit_log_affected_account_id_account_fkey" on table "audit_log" DETAIL: Key (id)=(17) is still referenced from table "audit_log".
We need to start deleting audit_log records when affected_account is being deleted. Probably should use 'ON CASCADE' option