mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
add phone
This commit is contained in:
@@ -3,6 +3,7 @@ import * as mongoose from 'mongoose'
|
||||
export interface Booker {
|
||||
name: string
|
||||
email: string
|
||||
phone: string
|
||||
street: string
|
||||
zip: string
|
||||
city: string
|
||||
@@ -19,6 +20,7 @@ const BookerSchema = new mongoose.Schema<BookerDocument>(
|
||||
{
|
||||
name: { type: String, required: true },
|
||||
email: { type: String, required: true, unique: true, minlength: 5 },
|
||||
phone: { type: String, required: false },
|
||||
street: { type: String, required: true },
|
||||
zip: { type: String, required: true },
|
||||
city: { type: String, required: true },
|
||||
|
||||
Reference in New Issue
Block a user