Skip to content

Instantly share code, notes, and snippets.

@NilsHaldenwang
Created October 12, 2010 21:06
Show Gist options
  • Select an option

  • Save NilsHaldenwang/622922 to your computer and use it in GitHub Desktop.

Select an option

Save NilsHaldenwang/622922 to your computer and use it in GitHub Desktop.
package org.uos.nhaldenw [ database ] {
entity User {
first_name: String
last_name: String
post_count: Integer
}
entity Adress {
street: String
number: Integer
post_code: Integer
country: String
}
entity Post {
title: String
body: String
published_at: Date
}
entity Group {
name: String
}
rel User => Post {
User as Author
Post as BlogPost
}
rel User <=> Group {
User as Member
generate: true
}
rel User -> Adress
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment