var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var passwordStrengthConfig_exports = {};
__export(passwordStrengthConfig_exports, {
  default: () => passwordStrengthConfig_default
});
module.exports = __toCommonJS(passwordStrengthConfig_exports);
var import_server = require("@tego/server");
var passwordStrengthConfig_default = (0, import_server.defineCollection)({
  dumpRules: {
    group: "user"
  },
  name: "passwordStrengthConfig",
  createdAt: true,
  updatedAt: true,
  createdBy: true,
  updatedBy: true,
  fields: [
    {
      type: "integer",
      name: "minLength",
      // 最小长度
      defaultValue: 8
    },
    {
      type: "integer",
      name: "strengthLevel",
      // 强度级别：0-不限制，1-字母和数字，2-字母数字符号，3-数字大小写字母，4-数字大小写字母符号，5-三种以上字符
      defaultValue: 0
    },
    {
      type: "boolean",
      name: "notContainUsername",
      // 不能包含用户名
      defaultValue: false
    },
    {
      type: "integer",
      name: "historyCount",
      // 历史密码记录数量，0表示不限制
      defaultValue: 0
    }
  ]
});
