added pengguna,kurir page, with socket.io,need to switch this to node.js first
This commit is contained in:
14
models/pendaftaran_baru_model.ts
Normal file
14
models/pendaftaran_baru_model.ts
Normal 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;
|
Reference in New Issue
Block a user