Created
October 20, 2017 13:38
-
-
Save mschoch/7a84006dcb926f3f9de5c50713fcf981 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ /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 | |
[ | |
{} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment