contributor.ts 575 B

12345678910111213141516171819
  1. import { BaseModel } from "./base_model";
  2. import { Contributor as ContributorInterface } from "../interfaces/contributor";
  3. export class Contributor extends BaseModel implements ContributorInterface {
  4. declare user_id: number;
  5. declare email: string;
  6. declare fullname: string;
  7. declare created_at: string;
  8. declare created_at_timestamp: number;
  9. declare is_admin: boolean;
  10. declare is_reviewer: boolean;
  11. declare languages: Array<{
  12. lang_id: number;
  13. lang_iso: string;
  14. lang_name: string;
  15. is_writable: boolean;
  16. }>;
  17. declare admin_rights: string[];
  18. }