Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ /tmp echo 'name: Users
- type: object
- key: _id
- properties:
- _id:
- type: string
- description: The document id built by the prefix "user_" and the users id
- data:
- post_build: `user_${this.user_id}`
- doc_type:
- type: string
- description: The document type
- data:
- value: user
- user_id:
- type: integer
- description: An auto-incrementing number
- data:
- build: document_index
- first_name:
- type: string
- description: The users first name
- data:
- build: faker.name.firstName()
- last_name:
- type: string
- description: The users last name
- data:
- build: faker.name.lastName()
- username:
- type: string
- description: The username
- data:
- build: faker.internet.userName()
- password:
- type: string
- description: The users password
- data:
- build: faker.internet.password()
- email_address:
- type: string
- description: The users email address
- data:
- build: faker.internet.email()
- created_on:
- type: integer
- description: An epoch time of when the user was created
- data:
- build: new Date(faker.date.past()).getTime()' > users.yaml
- ➜ /tmp fakeit console users.yaml
- [
- {}
- ]
Add Comment
Please, Sign In to add comment