text: import mongoose from 'mongoose';
  const Schema = mongoose.Schema;
  const { ObjectId } = Schema.Types;
  
  const ProjectSchema = new Schema({
    subtitle: String,
    description: String,
    title: {
      type: String,
      required: true,
      default: 'New Project'
    },
    titleSlug: { type: String, required: true },
    published: { type: Boolean, default: false },
    subjectOrder: String,
    visible: [],
    user: { type: ObjectId, ref: 'User' }
  }, { timestamps: true });
  
  const Project = mongoose.model('Project', ProjectSchema);
  
  export default Project;
  