database: remove `MockPerms` and move docstrings to interface
Created by: unknwon
As in the PR title
Test plan
Unit tests.
Part of https://github.com/sourcegraph/sourcegraph/issues/26113
Created by: unknwon
As in the PR title
Unit tests.
Part of https://github.com/sourcegraph/sourcegraph/issues/26113