Created
October 12, 2010 21:06
-
-
Save NilsHaldenwang/622922 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
| 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