1234567891011121314151617181920212223242526272829303132 |
- import mongoose from "mongoose";
- const profileSchema = mongoose.Schema({
- user: {
- ref: "user",
- type: mongoose.Schema.Types.ObjectId,
- },
- bio: { type: String, default: "" },
- age: { type: Number, default: ""},
- contacts: {
- youtube: {
- type: String,
- default: '',
- },
- facebook: {
- type: String,
- default: '',
- },
- linkedin: {
- type: String,
- default: '',
- },
- instagram: {
- type: String,
- default: '',
- },
- },
- });
- const Profile = mongoose.model("profile", profileSchema);
- export default Profile;
|