Implement a part of Football statistics management System. The situation is described as a position that has many football players involved and a player statistic belongs to only one position.Your database contains 3 collections; the database schema as the follow:
positions ({
position: {String, require: true},}, {timestamps: true,});
players ({
playerName: {type: String, require: true), team: {type: String, require: true},minutesPlayed: {type: Number, require: true}, image: {type: String, require: true},Passing Accuracy: {type: Number, require: true}, isCaptain: {type: Boolean, default: false}position: {type: mongoose.Schema. Types. ObjectId, ref: "Positions", require: true},},{timestamps:true,});
members ({
key: {type: String, require: true},code: {type: String, require: true},}, {timestamps: true,});
Task 01 (1.0 mark). Using Express generator for developing the REST API server, creating related models then migrate to database named PE_SDN301m_SU24_20240701_StudentCodeDB (MongoDB).
Zoun