| 12345678910111213141516171819 |
- const mongoose = require('mongoose');
- const licenseKeySchema = new mongoose.Schema({
- licenseKey: {
- type: String,
- required: true,
- unique: true
- },
- isUsed: {
- type: Boolean,
- default: false
- },
- generatedAt: {
- type: Date,
- default: Date.now
- }
- });
- module.exports = mongoose.model('LicenseKey', licenseKeySchema);
|