Skip to content

Instantly share code, notes, and snippets.

@mhoangvslev
Last active June 26, 2019 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhoangvslev/9a44c87f45bf5a24a3afe1f9d6f84faf to your computer and use it in GitHub Desktop.
Save mhoangvslev/9a44c87f45bf5a24a3afe1f9d6f84faf to your computer and use it in GitHub Desktop.
module.exports = {
kittyId: {
type: 'number',
primary: true,
},
genes: {
type: 'string',
},
generation: {
type: 'number'
},
owner: {
type: 'string'
},
avatar: {
type: 'string',
unique: true
},
child: {
type: 'relationship',
relationship: 'CHILD',
direction: 'out',
target: 'Kitty',
cascade: 'delete',
properties: {
birthTime: "datetime",
blockheight: "integer"
},
eager: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment