Wraith.Store.Keys (Wraith v0.1.0)

View Source

Where every entity lives in the one table. All keys are built here so the layout is readable in one place.

entitypkskgsi1pkgsi1sk
site settingsSITESETTINGS
user (author)USER#idUSERUSERSemail
user by emailEMAIL#emailUSER
user by slugUSLUG#slugUSER
auth sessionTOKEN#hashSESSIONSESSIONS#user_idcreated_at
postPOST#idPOSTPOSTS#statussort_at#id
post by slugSLUG#slugPOST
post revisionPOST#idREV#at
post in tagTAG#slugPOST#sort_at#id
post by authorAUTHOR#user_idPOST#sort_at#id
tagTAG#slugTAGTAGSname
memberMEMBER#idMEMBERMEMBERScreated_at#id
member by emailMEMBER_EMAIL#emailMEMBER
widgetWIDGET#slugWIDGETWIDGETSname
widget versionWIDGET#slugVER#n
widget stateWSTATE#widget#instanceSTATE
studio sessionSTUDIOSESSION#id
studio transcriptSTUDIO#session_idMSG#at#seq

Summary

Functions

api_key(id)

api_keys_index()

author_post(user_id, sort_at, id)

author_posts_pk(user_id)

comment(post_id, sort)

comments_index(status)

comments_prefix()

expiring_index()

member(id)

member_email(email)

member_session(token_hash)

members_index()

newsletter_send(post_id)

owner_claim()

pad(n)

Zero-padded so lexical order is numeric order.

post(id)

post_preview(token)

post_revision(id, at)

post_revisions_prefix()

post_slug(slug)

post_sort(sort_at, id)

posts_index(status)

session(token_hash)

sessions_index()

site()

stripe_customer(customer_id)

stripe_event(id)

studio_message(session_id, at, seq)

studio_messages_pk(session_id)

studio_session(id)

studio_sessions_prefix()

tag(slug)

tag_post(tag_slug, sort_at, id)

tag_posts_prefix()

tags_index()

used_token(token_hash)

user(id)

user_email(email)

user_slug(slug)

users_index()

widget(slug)

widget_state(widget, instance)

widget_version(slug, n)

widget_versions_prefix()

widgets_index()