rename js/x ts/x

This commit is contained in:
Thomas Ruoff
2020-08-26 22:36:27 +02:00
committed by Thomas Ruoff
parent 9853e31201
commit be1e22460d
23 changed files with 0 additions and 0 deletions

14
db/booker.ts Normal file
View File

@@ -0,0 +1,14 @@
import * as mongoose from 'mongoose'
const BookerSchema = new mongoose.Schema(
{
name: { type: String, required: true },
email: { type: String, required: true, unique: true, minlength: 5 },
street: { type: String, required: true },
zip: { type: String, required: true },
city: { type: String, required: true },
},
{ timestamps: true, collation: { locale: 'de', strength: 1 } }
)
export default mongoose.models.Booker || mongoose.model('Booker', BookerSchema)