Skip to content

Instantly share code, notes, and snippets.

@KrzaQ
Created February 20, 2017 14:21
Show Gist options
  • Select an option

  • Save KrzaQ/a0e97e0e87bc3c81e79220854acedc12 to your computer and use it in GitHub Desktop.

Select an option

Save KrzaQ/a0e97e0e87bc3c81e79220854acedc12 to your computer and use it in GitHub Desktop.
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