pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
34 lines • 766 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
exports.AddressSchema = new mongoose_1.default.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,
},
});
//# sourceMappingURL=address.schema.js.map