Commit 606c4500 authored by Vytor Calixto's avatar Vytor Calixto 👾

Adicionado campo "moderador" no modelo de arquivo

Closes #10
parent 0458ba8e
...@@ -54,6 +54,11 @@ var Arquivo = new Schema({ ...@@ -54,6 +54,11 @@ var Arquivo = new Schema({
usuario: { usuario: {
type: Schema.Types.ObjectId, type: Schema.Types.ObjectId,
ref: 'Usuario' ref: 'Usuario'
},
// Quem aprovou o upload
moderador: {
type: Schema.Types.ObjectId,
ref: 'Usuario'
} }
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment