feat: add backend server
This commit is contained in:
31
server/model/standard.js
Normal file
31
server/model/standard.js
Normal 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
|
||||
Reference in New Issue
Block a user