Last active
March 11, 2018 23:00
-
-
Save diegohaz/6e5aa6540a3489c89977e0d54b0bb92d to your computer and use it in GitHub Desktop.
This file contains 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
const schema = require("schm"); | |
const identitySchema = schema({ | |
name: String, | |
birthdate: Date, | |
}); | |
const bodySchema = schema({ | |
height: Number, | |
weight: Number, | |
}); | |
const humanSchema = schema( | |
identitySchema, | |
bodySchema, | |
{ | |
age: Number, | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment