Example #1
0
function Album() {
	achilles.Model.call(this);

	this.define("title", String);
	this.define("rating", Number);
	this.define("songs", [Song]);
}
Example #2
0
function Post() {
	achilles.Model.call(this);

	this.define("title", String);
	this.define("content", Content);
	this.define("date", Date);

	this.content = new Content();
}