Created
March 11, 2018 23:10
-
-
Save diegohaz/4f028faf2da60ad2197626b27a0b302c 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 roleSchema = schema({ | |
title: String, | |
permissions: [String], | |
}); | |
const userSchema = schema({ | |
name: String, | |
age: Number, | |
role: roleSchema, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment