punishment.js 417 B

123456789
  1. module.exports = {
  2. type: { type: String, enum: ["banUserId", "banUserIp"], required: true },
  3. value: { type: String, required: true },
  4. reason: { type: String, required: true, default: 'Unknown' },
  5. active: { type: Boolean, required: true, default: true },
  6. expiresAt: { type: Date, required: true },
  7. punishedAt: { type: Date, default: Date.now(), required: true },
  8. punishedBy: { type: String, required: true }
  9. };