upd
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { model, Schema } from "mongoose";
|
||||
|
||||
const launchLogSchema = new Schema(
|
||||
{
|
||||
location: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
server: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
buildName: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
ownerIp: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
toJSON: { virtuals: true },
|
||||
toObject: { virtuals: true },
|
||||
}
|
||||
);
|
||||
|
||||
const LaunchLog = model("Launch_Log", launchLogSchema);
|
||||
|
||||
export default LaunchLog;
|
||||
Reference in New Issue
Block a user