feat: add backend server

This commit is contained in:
2026-05-11 16:01:22 +08:00
parent 3c838d534f
commit e24a34deb4
11 changed files with 1709 additions and 0 deletions

31
server/model/standard.js Normal file
View File

@@ -0,0 +1,31 @@
import mongoose from 'mongoose'
const StandardSchema = new mongoose.Schema(
{
batch: {
type: String,
require: true,
unique: true,
},
im: {
type: String,
},
ass: {
type: String,
},
calibration_date: {
type: Date,
},
expire_date: {
type: Date,
},
location: {
type: String,
},
},
{ timestamps: true }
)
const Standard = mongoose.model('Standard', StandardSchema)
export default Standard