Skip to content

Instantly share code, notes, and snippets.

@bhagany
Created May 12, 2015 15:58
Show Gist options
  • Save bhagany/10a698dca5fb3770ac6d to your computer and use it in GitHub Desktop.
Save bhagany/10a698dca5fb3770ac6d to your computer and use it in GitHub Desktop.
[{:db/id #db/id[:db.part/db]
:db/ident :store/id
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one
:db/doc "A store id, matching postgres"
:db/unique :db.unique/value
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :store/publish-tx
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one
:db/doc "The transaction representing a published store"
:db/unique :db.unique/value
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :store/store
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The store that a design element belongs to"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/view-type
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The intended view mode for a design element"
:db/index true
:db.install/_attribute :db.part/db}
[:db/add #db/id[:stores] :db/ident :view-type/web]
[:db/add #db/id[:stores] :db/ident :view-type/mobile]
[:db/add #db/id[:stores] :db/ident :view-type/facebook]
[:db/add #db/id[:stores] :db/ident :view-type/embed]
{:db/id #db/id[:db.part/db]
:db/ident :design/layout
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The layout for this design element"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/page
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The page for this design element"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/order
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one
:db/doc "The index of design element relative to its siblings"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/html-hash
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "6-digit hash for uniquely identifying html elements"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :slug/slug
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "String representation of this slug"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :slug/type
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "What kind of thing this slug is used for"
:db/index true
:db.install/_attribute :db.part/db}
[:db/add #db/id[:stores] :db/ident :slug/page]
[:db/add #db/id[:stores] :db/ident :slug/product]
[:db/add #db/id[:stores] :db/ident :slug/redirect]
{:db/id #db/id[:db.part/db]
:db/ident :slug/raw
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one
:db/doc "Flag for whether processing should be skipped"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :slug/redirect-data
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "Mapping for optional redirect strings to Goodsie paths"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :layout/name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A layout's name"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :layout/slug
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A layout's slug"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/title
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A page's title"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/slug
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The slug for a page"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/directory
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The directory for a page (aka, a parent page)"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/seo-title
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A page's SEO title"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/seo-description
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A page's SEO description"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/deletable
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one
:db/doc "Deletable flag"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/system
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one
:db/doc "System flag"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/navable
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one
:db/doc "Navable flag"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :page/has-email-capture
:db/valueType :db.type/boolean
:db/cardinality :db.cardinality/one
:db/doc "Flag for containing an email capture pop-up"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/row
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "A column's row"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/column
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "An element's column"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/page-row
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "A page column's page row"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :module/name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A module's name"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :module/type
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "A module's type"
:db/index true
:db.install/_attribute :db.part/db}
[:db/add #db/id[:stores] :db/ident :module/marketplace-cart]
[:db/add #db/id[:stores] :db/ident :module/product-detail]
[:db/add #db/id[:stores] :db/ident :module/slideshow]
[:db/add #db/id[:stores] :db/ident :module/cart-status]
[:db/add #db/id[:stores] :db/ident :module/image]
[:db/add #db/id[:stores] :db/ident :module/marketplace-checkout-thanks]
[:db/add #db/id[:stores] :db/ident :module/cart]
[:db/add #db/id[:stores] :db/ident :module/coupon]
[:db/add #db/id[:stores] :db/ident :module/header]
[:db/add #db/id[:stores] :db/ident :module/share]
[:db/add #db/id[:stores] :db/ident :module/video]
[:db/add #db/id[:stores] :db/ident :module/map]
[:db/add #db/id[:stores] :db/ident :module/nav]
[:db/add #db/id[:stores] :db/ident :module/image-grid]
[:db/add #db/id[:stores] :db/ident :module/checkout]
[:db/add #db/id[:stores] :db/ident :module/products]
[:db/add #db/id[:stores] :db/ident :module/search-results]
[:db/add #db/id[:stores] :db/ident :module/search]
[:db/add #db/id[:stores] :db/ident :module/marketplace-search-results]
[:db/add #db/id[:stores] :db/ident :module/text]
[:db/add #db/id[:stores] :db/ident :module/social]
[:db/add #db/id[:stores] :db/ident :module/signup]
[:db/add #db/id[:stores] :db/ident :module/checkout-thanks]
[:db/add #db/id[:stores] :db/ident :module/html]
[:db/add #db/id[:stores] :db/ident :module/contact]
[:db/add #db/id[:stores] :db/ident :module/logos]
[:db/add #db/id[:stores] :db/ident :module/marketplace-checkout]
[:db/add #db/id[:stores] :db/ident :module/marketplace]
[:db/add #db/id[:stores] :db/ident :module/form]
{:db/id #db/id[:db.part/db]
:db/ident :module/data
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A module's custom data"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :module/form-id
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A module's form id in postgres"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/page-column
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "A manifested module's page column"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/module
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "A manifested module's module"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design-rule/selector
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "Selector for a design rule"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design-rule/rule
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "Styles for a design rule"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design-rule/what-cascade-order
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "\"What\" cascade order for a design rule"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design-rule/where1-cascade-order
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "First \"Where\" cascade order for a design rule"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design-rule/where2-cascade-order
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "Second \"Where\" cascade order for a design rule"
:db/index true
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :design/element
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/doc "The specific element that a design rule belongs to"
:db/index true
:db.install/_attribute :db.part/db}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment