Examples:
class Post
key :blog_subdomain, :text
key :id, :timeuuid, auto: true
column :title, :text
column :body, :text
column :author_id, :uuid, index: true end
Using some but not all primary key columns
Post.find_all_by_blog_subdomain(subdomain)
Post.with_subdomain(subdomain)
Using all primary key columns
Post.find_by_blog_subdomain_and_id(subdomain, id)
Post.with_blog_subdomain_and_id(subdomain, id)
Post.with_blog_subdomain(subdomain).find_by_id(id)
Post.find_by_author_id(id)
Post.find_all_by_author_id(id)
Post.with_author_id(id)