Guest User

Untitled

a guest
Oct 21st, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. ➜ /tmp echo 'name: Users
  2. type: object
  3. key: _id
  4. properties:
  5.   _id:
  6.     type: string
  7.     description: The document id built by the prefix "user_" and the users id
  8.     data:
  9.       post_build: `user_${this.user_id}`
  10.   doc_type:
  11.     type: string
  12.     description: The document type
  13.     data:
  14.       value: user
  15.   user_id:
  16.     type: integer
  17.     description: An auto-incrementing number
  18.     data:
  19.       build: document_index
  20.   first_name:
  21.     type: string
  22.     description: The users first name
  23.     data:
  24.       build: faker.name.firstName()
  25.   last_name:
  26.     type: string
  27.     description: The users last name
  28.     data:
  29.       build: faker.name.lastName()
  30.   username:
  31.     type: string
  32.     description: The username
  33.     data:
  34.       build: faker.internet.userName()
  35.   password:
  36.     type: string
  37.     description: The users password
  38.     data:
  39.       build: faker.internet.password()
  40.   email_address:
  41.     type: string
  42.     description: The users email address
  43.     data:
  44.       build: faker.internet.email()
  45.   created_on:
  46.     type: integer
  47.     description: An epoch time of when the user was created
  48.     data:
  49.       build: new Date(faker.date.past()).getTime()' > users.yaml
  50. ➜ /tmp fakeit console users.yaml
  51. [
  52. {}
  53. ]
Add Comment
Please, Sign In to add comment