# `type.constraint_base`

Constraint does not fit the type's base.

Area 2, [Values and types](../topics/values-and-types.md); not declinable; the next step is usually the agent's.

```jadpo
type Nickname = Text {
    min: 1
}
```

```text
error: `min` doesn't apply to a `Text` type
 --> main.jadpo:2:5
  |
2 |     min: 1
  |     ^^^ doesn't fit the base
  reason: `min` constrains `Int`, `Decimal`, `Duration`, `Money`, `Percentage` and quantity types.
  next: Remove `min`, or use a constraint that fits (agent)
  rule: type.constraint_base
  help: https://jadpo.dev/docs/errors/type.constraint_base

check failed: 1 error, 1 file
```
