Update models.js
Browse files
models.js
CHANGED
@@ -29,6 +29,13 @@ const jobSchema = new mongoose.Schema({
|
|
29 |
createdAt: { type: Date, default: Date.now, expires: 300 }
|
30 |
});
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
export const Federation = mongoose.model("Federation", federationSchema);
|
33 |
export const Job = mongoose.model("Job", jobSchema);
|
34 |
export const ApiKey = mongoose.model("ApiKey", apiKeySchema);
|
|
|
29 |
createdAt: { type: Date, default: Date.now, expires: 300 }
|
30 |
});
|
31 |
|
32 |
+
const SangMataSchema = new mongoose.Schema({
|
33 |
+
user_id: { type: Number, required: true, unique: true },
|
34 |
+
username: { type: String },
|
35 |
+
first_name: [{ type: String }],
|
36 |
+
}, { timestamps: true });
|
37 |
+
|
38 |
+
export const SangMata = mongoose.model("SangMata", SangMataSchema);
|
39 |
export const Federation = mongoose.model("Federation", federationSchema);
|
40 |
export const Job = mongoose.model("Job", jobSchema);
|
41 |
export const ApiKey = mongoose.model("ApiKey", apiKeySchema);
|