Created
October 17, 2010 13:33
-
-
Save NilsHaldenwang/630859 to your computer and use it in GitHub Desktop.
ERDL file for a simple blog
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 [ db_name ] { | |
| entity User { | |
| name: String | |
| age: Integer | |
| size: Float | |
| admin: Boolean | |
| } | |
| entity Group { | |
| name: String | |
| description: String | |
| } | |
| entity Address { | |
| street: String | |
| number: Integer | |
| zipCode: Integer | |
| } | |
| entity Post { | |
| title: String | |
| text: String | |
| } | |
| entity Category { | |
| name: String | |
| description: String | |
| } | |
| entity Comment { | |
| text: String | |
| } | |
| rel User => Post { | |
| User as Author | |
| } | |
| rel Post => Comment | |
| rel Category => Post | |
| rel User -> Address | |
| rel User <=> Group | |
| rel User => Comment { | |
| User as Author | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment