Skip to content

Instantly share code, notes, and snippets.

@adamneilson
Created January 18, 2014 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamneilson/8489997 to your computer and use it in GitHub Desktop.
Save adamneilson/8489997 to your computer and use it in GitHub Desktop.
[
;; ----- User type -----
{:db/id #db/id[:db.part/db]
:db/ident :user/name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A users name"
:db/unique :db.unique/identity
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :user/email
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A users email"
:db/unique :db.unique/identity
:db.install/_attribute :db.part/db}
{:db/id #db/id[:db.part/db]
:db/ident :user/password
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/doc "A users password"
:db.install/_attribute :db.part/db}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment