punishment.js 477 B

12345678910
  1. export default {
  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. documentVersion: { type: Number, default: 1, required: true }
  10. };