class Post(BaseAggregate): title = String(required=True, max_length=1000) slug = String(required=True, max_length=1024) content = Text(required=True) posted_at = DateTime(required=True, default=datetime.now()) meta = HasOne('PostMeta') comments = HasMany('Comment')
class Post(BaseAggregate): title = String(required=True, max_length=1000) slug = String(required=True, max_length=1024) content = Text(required=True) posted_at = DateTime(required=True, default=datetime.now()) post_meta = HasOne("tests.repository.child_entities.PostMeta") comments = HasMany("tests.repository.child_entities.Comment")
class Post(BaseAggregate): title = String(required=True, max_length=1000) slug = String(required=True, max_length=1024) content = Text(required=True) posted_at = DateTime(required=True, default=datetime.now()) meta = HasOne("tests.unit_of_work.aggregate_elements.PostMeta") comments = HasMany("tests.unit_of_work.aggregate_elements.Comment")
class AccountViaWithReference(BaseAggregate): email = String(required=True, max_length=255, unique=True, identifier=True) password = String(required=True, max_length=255) username = String(max_length=255, unique=True) profile = HasOne('tests.aggregate.elements.ProfileViaWithReference', via='ac_email')
class AccountWithId(BaseAggregate): email = String(required=True, max_length=255, unique=True) password = String(required=True, max_length=255) username = String(max_length=255, unique=True) author = HasOne('tests.aggregate.elements.Author')
class AccountVia(BaseAggregate): email = String(required=True, max_length=255, unique=True, identifier=True) password = String(required=True, max_length=255) username = String(max_length=255, unique=True) profile = HasOne("tests.aggregate.elements.ProfileVia", via="account_email")