mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
added recent activity db model
This commit is contained in:
parent
4b062d00e5
commit
386a09f6e2
22
packages/server/db_models/recentActivity/index.js
Normal file
22
packages/server/db_models/recentActivity/index.js
Normal file
@ -0,0 +1,22 @@
|
||||
export default {
|
||||
name: "RecentActivity",
|
||||
collection: "recent_activity",
|
||||
schema: {
|
||||
user_id: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
payload: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
created_at: {
|
||||
type: Date,
|
||||
default: Date.now,
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user