adding picture display with cloudfront and working on ios take photo and post flow
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
import mongoose from 'mongoose';
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
const postSchema = new mongoose.Schema({
|
||||
userID: {
|
||||
@@ -7,22 +6,25 @@ const postSchema = new mongoose.Schema({
|
||||
required: true
|
||||
},
|
||||
date: {
|
||||
type: Date,
|
||||
type: Date
|
||||
},
|
||||
photo: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
notes: {
|
||||
type: String,
|
||||
type: String
|
||||
},
|
||||
address: {
|
||||
type: String
|
||||
},
|
||||
status: {
|
||||
type: String,
|
||||
enum: ['created', 'pending', 'denied', 'approved'],
|
||||
enum: ['created', 'denied', 'approved'],
|
||||
default: 'created'
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
const Post = mongoose.model('Post', postSchema);
|
||||
const Post = mongoose.model('Post', postSchema)
|
||||
|
||||
export default Post;
|
||||
export default Post
|
||||
|
||||
Reference in New Issue
Block a user