pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
32 lines (30 loc) • 559 B
text/typescript
import mongoose from "mongoose";
export const AddressSchema = new mongoose.Schema(
{
address: {
type: String,
},
city: {
type: String,
},
zip: {
type: String,
},
state: {
type: String,
},
country: {
type: String,
},
phone: {
type: String,
},
},
{
timestamps: true,
toJSON: { virtuals: true },
toObject: {
virtuals: true,
},
},
);