added pengguna,kurir page, with socket.io,need to switch this to node.js first

This commit is contained in:
kicap1992
2025-05-16 11:43:38 +08:00
parent 5329fb8265
commit 0ba4e846dc
1095 changed files with 12336 additions and 35 deletions

View File

@ -2,11 +2,13 @@ import mongoose from "mongoose";
const kurirSchema = new mongoose.Schema({
no_telpon: { type: String, required: true, unique: true },
password: { type: String },
nama: { type: String, required: true },
jenis_kelamin: { type: String, required: true },
dd_motor: { type: String, required: true, unique: true },
gambar_kurir: { type: String, required: true },
gambar_motor: { type: String, required: true }
gambar_motor: { type: String, required: true },
status: { type: String },
}, {
timestamps: true // This auto-adds createdAt and updatedAt
});