Created
November 11, 2022 23:11
-
-
Save glommer/248120df4734188634be47dbbf13e574 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in models/User.ts | |
import {ChiselEntity} from "@chiselstrike/api"; | |
export class User extends ChiselEntity { | |
// the external user_id (coming from JWT auth, not public data) | |
userId?: string; | |
// the user's username | |
username: string; | |
// the user's email (not public data!) | |
email?: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment