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

@ -0,0 +1,14 @@
import mongoose from "mongoose";
const PendaftaranBaruSchema = new mongoose.Schema({
no_telpon: { type: String, required: true, unique: true },
nama: { type: String, required: true },
password: { type: String, required: true },
otp: { type: String, required: true },
}, {
timestamps: true // This auto-adds createdAt and updatedAt
});
const PendafaranBaruModel = mongoose.model('Pendaftaran_Baru_Collection', PendaftaranBaruSchema);
export default PendafaranBaruModel;