Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import {Entity, model, property} from '@loopback/repository';
  2.  
  3. @model({
  4. name: 'users',
  5. settings: {
  6. hiddenProperties: ['uuid'],
  7. }
  8. })
  9. export class User extends Entity {
  10. @property({
  11. type: 'string',
  12. id: true,
  13. required: true,
  14. })
  15. uuid: string;
  16.  
  17. @property({
  18. type: 'string',
  19. required: true,
  20. })
  21. email: string;
  22.  
  23. @property({
  24. type: 'string',
  25. required: true,
  26. })
  27. password: string;
  28.  
  29. constructor(data?: Partial<User>) {
  30. super(data);
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement