All update about transportantion and style

This commit is contained in:
Yang Li
2025-07-04 14:13:25 -04:00
parent e4654be2b9
commit 98d86c0f70
76 changed files with 7477 additions and 693 deletions

View File

@@ -0,0 +1,40 @@
module.exports = mongoose => {
var schema = mongoose.Schema(
{
slogan: {
type: String,
required: true
},
introduction: {
type: String,
required: true
},
image: {
type: String
},
status: {
type: String,
default: 'active'
},
site: Number,
create_date: {
type: Date,
default: Date.now
},
create_by: String,
update_date: {
type: Date,
default: Date.now
},
update_by: String
},
{ collection: 'attendance_note', timestamps: true }
);
schema.method("toJSON", function() {
const { __v, _id, ...object } = this.toObject();
object.id = _id;
return object;
});
const AttendanceNote = mongoose.model("attendance_note", schema);
return AttendanceNote;
};

View File

@@ -79,7 +79,9 @@ module.exports = mongoose => {
}],
site: Number,
event_location: String,
event_prediction_date: String
event_prediction_date: String,
event_reminder_type: String,
rrule: String
},
{ collection: 'calendar_event', timestamps: true }
);

View File

@@ -0,0 +1,29 @@
module.exports = mongoose => {
var schema = mongoose.Schema(
{
status: {
type: String,
default: 'active'
},
site: Number,
create_date: {
type: Date,
default: Date.now
},
create_by: String,
update_date: {
type: Date,
default: Date.now
},
update_by: String
},
{ collection: 'carousel', timestamps: true }
);
schema.method("toJSON", function() {
const { __v, _id, ...object } = this.toObject();
object.id = _id;
return object;
});
const Carousel = mongoose.model("carousel", schema);
return Carousel;
};

View File

@@ -16,6 +16,13 @@ module.exports = mongoose => {
password: String,
care_provider: String,
emergency_contact: String,
emergency_contact2: String,
emergency_contact_name: String,
emergency_contact_phone: String,
emergency_contact_relationship: String,
emergency_contact2_name: String,
emergency_contact2_phone: String,
emergency_contact2_relationship: String,
medicare_number: String,
medicaid_number: String,
pharmacy: String,
@@ -27,6 +34,26 @@ module.exports = mongoose => {
address3: String,
address4: String,
address5: String,
street_address_1: String,
city1: String,
state1: String,
zip_code1: String,
street_address_2: String,
city2: String,
state2: String,
zip_code2: String,
street_address_3: String,
city3: String,
state3: String,
zip_code3: String,
street_address_4: String,
city4: String,
state4: String,
zip_code4: String,
street_address_5: String,
city5: String,
state5: String,
zip_code5: String,
phone: String,
mobile_phone: String,
type: String,
@@ -72,7 +99,15 @@ module.exports = mongoose => {
height: String,
weight: String,
gender: String,
text_msg_enabled: Boolean
text_msg_enabled: Boolean,
health_condition: String,
allergy_info: String,
meal_requirement: String,
service_requirement: String,
payment_due_date: String,
payment_status: String,
join_reason: String,
discharge_reason: String
},
{ collection: 'customer', timestamps: true }
);

View File

@@ -30,4 +30,6 @@ db.snack = require("./snack.model")(mongoose);
db.vehicle_repair = require("./vehicle-repair.model")(mongoose);
db.label = require("./label.model")(mongoose);
db.seating = require("./seating.model")(mongoose);
db.attendance_note = require("./attendance-note.model")(mongoose);
db.carousel = require("./carousel.model")(mongoose);
module.exports = db;