Created
February 20, 2017 14:21
-
-
Save KrzaQ/a0e97e0e87bc3c81e79220854acedc12 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
| import std.datetime; | |
| import std.string; | |
| class Author | |
| { | |
| string name; | |
| string email; | |
| string hashedPassword; | |
| } | |
| class Tag | |
| { | |
| string name; | |
| } | |
| class Post | |
| { | |
| Author author; | |
| DateTime published; | |
| PostData[] edits; | |
| } | |
| class PostData | |
| { | |
| string markdown; | |
| DateTime timestamp; | |
| @ManyToMany | |
| Tag[] tags; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment