Update models.js
Browse files
models.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import mongoose from "mongoose";
|
2 |
|
3 |
const apiKeySchema = new mongoose.Schema({
|
4 |
-
|
5 |
owner: { type: Number, required: true, unique: true },
|
6 |
is_banned: { type: Boolean, default: false },
|
7 |
email: { type: String },
|
|
|
1 |
import mongoose from "mongoose";
|
2 |
|
3 |
const apiKeySchema = new mongoose.Schema({
|
4 |
+
key: { type: String, required: true, unique: true },
|
5 |
owner: { type: Number, required: true, unique: true },
|
6 |
is_banned: { type: Boolean, default: false },
|
7 |
email: { type: String },
|