Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {Entity, model, property} from '@loopback/repository';
- @model({
- name: 'users',
- settings: {
- hiddenProperties: ['uuid'],
- }
- })
- export class User extends Entity {
- @property({
- type: 'string',
- id: true,
- required: true,
- })
- uuid: string;
- @property({
- type: 'string',
- required: true,
- })
- email: string;
- @property({
- type: 'string',
- required: true,
- })
- password: string;
- constructor(data?: Partial<User>) {
- super(data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement