alanjames1987 / marilyn

Marilyn is a client side, Socket.IO driven, Pub/Sub, model layer with a query system similar to Mongoose.
MIT License
114 stars 3 forks source link

Feature: Add Model Default Values #4

Open alanjames1987 opened 9 years ago

alanjames1987 commented 9 years ago

Models should be able to have default values for certain properties, like created. When a new model record instance is created either a default method should be called or a precreated schema should be applied.

alanjames1987 commented 9 years ago

This might be doable with a before create event.