Adapted from PHP League's OAuth2 Example Schema (to save you the hassle)