TOS consent: adds backend
Created by: limitedmage
Part of #28716 (closed)
Adds backend for Terms of Service/Privacy Policy consent. This is to support adding a consent form for both new and existing users on Sourcegraph Server (not Cloud).
- Adds a column in the
users
table,tos_accepted
. This is a boolean, false by default. - Adds
tosAccepted
to theUser
type in GraphQL, so the value can be queried for a user - Adds
setTosAccepted
mutation in GraphQL, so a user can accept the terms of service.