Skip to content

Instantly share code, notes, and snippets.

@glommer
Created November 11, 2022 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glommer/248120df4734188634be47dbbf13e574 to your computer and use it in GitHub Desktop.
Save glommer/248120df4734188634be47dbbf13e574 to your computer and use it in GitHub Desktop.
// 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