adding picture display with cloudfront and working on ios take photo and post flow

This commit is contained in:
Will Baumbach
2025-07-30 16:24:09 -05:00
parent 913c4cf3f7
commit e49674a755
9 changed files with 13524 additions and 13450 deletions

View File

@@ -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