{
  alias:            "___fcf___users",
  table:            "___fcf___users",
  enable:           true,
  title:            "Users",
  singleTitle:      "${record.user}$",
  description:      "List of registered users in the system",
  dbSync:           true,
  inner:            true,
  connectionGroup:  "default",
  access:           "root",
  key:              "id",
  order:            [ { type: "field", field: "id", order: "asc" } ],
  fields:[
    {
      alias:          'id',
      field:          'id',
      type:           'bigint',
      notAdd:         true,
      notEdit:        true,
      autoIncrement:  true,
    },
    {
      alias:          'user',
      field:          'user',
      title:          '!{{User}}!',
      type:           'string',
      maxSize:        255,
      notEmpty:       true,
      unique:         true,
    },
    {
      alias:          'password',
      field:          'password',
      title:          '!{{Password}}!',
      type:           'password',
      maxSize:        255,
      notEmpty:       true,
    },
    {
      alias:          'groups',
      title:          '!{{Groups}}!',
      type:           'externalRef',
      projection:     '___fcf___users_groups',
      selfField:      'self_ref',
      refField:       'entity_ref',
    },
    {
      alias:      "active",
      field:      "active",
      title:      "!{{Active}}!",
      description:  "!{{Permission to log in with an account}}!",
      type:       "boolean",
      default:    false,
      notNull:    true,
    },
    {
      alias:        "initialized",
      field:        "initialized",
      title:        "!{{Initialized}}!",
      description:  "!{{Account initialized and registration confirmation completed}}!",
      type:         "boolean",
      default:      true,
      notNull:      true,
    },
    {
      alias:        "time_creation",
      field:        "time_creation",
      title:        "!{{Time creation}}!",
      type:         "datetime",
      notEdit:      true,
      notNull:      true,
      default:      "@{fcf.dateFormat(new Date(), 'Y-m-d H:i:s')}@"
    },
    {
      alias:        "last_login_attempt",
      field:        "last_login_attempt",
      title:        "!{{Last login attempt}}!",
      type:         "datetime",
    },
    {
      alias:        "number_login_attempts",
      field:        "number_login_attempts",
      title:        "!{{Number of login attempts}}!",
      type:         "int",
      default:      0,
    },
  ]
}
