10 Commits

Author SHA1 Message Date
Aron Carroll
37e18fbf04 Convert all models into observable objects 2012-05-20 21:29:38 +01:00
Aron Carroll
561fa1f9ea User model now has .getBins() method 2012-05-18 15:50:07 +01:00
Aron Carroll
f6980cee25 Created bins are now assigned to user account when logged in 2012-05-09 21:57:34 +01:00
Aron Carroll
156d6d1c18 Now upgrade passwords from old JSBin accounts to new ones 2012-05-06 19:07:41 +01:00
Aron Carroll
a5811c6af9 Update "last_login" column when a user logs in 2012-05-06 18:45:48 +01:00
Aron Carroll
fa08652d35 Add a user model and update models/index.js 2012-05-05 19:36:22 +01:00
Aron Carroll
84d4292d99 Create an index file for all models
Also refactored the model modules to export a factory function rather
than returning a function itself. This seems to read a bit better.
2012-04-30 23:19:08 +01:00
Aron Carroll
20a7ea5b3c Add support for saving a bin revision
Support is still very basic but a revision can be created, streaming
is not yet supported as we are waiting on sessions.
2012-04-22 19:00:07 +01:00
Aron Carroll
83b35ca08c Move other database methods into bin model 2012-04-20 19:20:20 +01:00
Aron Carroll
9f9c228b7f Add models directory for common model objects 2012-04-20 19:05:41 +01:00