Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SharedSchema = {
- parentRef: ObjectId,
- address: {
- city: String,
- country: String
- },
- mail: {
- mailBox: {
- type: String,
- },
- packageLocker: {
- type: String,
- },
- },
- }
- const Property = {
- ...SharedSchema,
- website: {
- heroImg: String,
- },
- }
- const Building = {
- ...SharedSchema,
- }
- const RoomType = {
- ...SharedSchema,
- }
- const Unit = {
- ...SharedSchema,
- lockIds: [String],
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement