'Mongoose schema proper conversion to C#

Im converting an existing and working project based on NodeJS to C#. The Node project uses mongoose to work with a db MongoDB and I have the following const that I dont know how to translate properly to C#:

const RoadSchema: Schema = new Schema({
    _id: {
      type: String,
      default: uuidv4,
    },
    type: {
      type: Number,
      required: false,
      default: RoadType.TEXT,
      enum: Object.values(RoadType),
    }
});
export default mongoose.model<IMongoRoadDoc>('Road', RoadSchema);

Can anybody help me with this so I can apply later the conversion for other similar node codes?

Im using MongoDB.Driver in C#

Ps: Im noob with MongoDb and I didnt used mongoose before



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source