notification model

This commit is contained in:
jysperm
2014-09-12 05:07:14 +08:00
parent 9ec8c004d8
commit a1812a60c8
3 changed files with 14 additions and 3 deletions

View File

@@ -18,8 +18,8 @@
vi /etc/hosts
apt-get install mongodb=1:2.4.9-1ubuntu2
apt-get install nodejs git nginx postfix redis-server ntp supervisor
apt-get install python g++ make screen git wget zip unzip iftop vim curl htop iptraf nethogs
apt-get install nodejs git nginx redis-server ntp supervisor
apt-get install python g++ make screen wget zip unzip iftop vim curl htop iptraf nethogs
npm install coffee-script -g
@@ -154,7 +154,7 @@
### Runtime
# Shell
apt-get install libcurl4-openssl-dev axel unrar-free emacs subversion subversion-tools tmux mercurial
apt-get install libcurl4-openssl-dev axel unrar-free emacs subversion subversion-tools tmux mercurial postfix
# Golang
apt-get install golang golang-go.tools

View File

@@ -0,0 +1,10 @@
module.exports = exports = app.db.collection 'notifications'
sample =
account_id: ObjectID()
created_at: Date()
level: 'notice/event/log'
type: 'payment_success'
meta:
amount: 10

View File

@@ -0,0 +1 @@
exports.createNotice = (account, level, notice, callback) ->