# Fields API Reference

Os campos definem a estrutura e tipos de dados dos modelos CaspyORM.

## BaseField

::: caspyorm.fields.BaseField
    handler: python
    selection:
      members:
        - __init__
        - get_cql_definition
        - to_python
        - to_cql
        - get_pydantic_type
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

## Tipos de Campo

### Text

::: caspyorm.fields.Text
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### UUID

::: caspyorm.fields.UUID
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Integer

::: caspyorm.fields.Integer
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Float

::: caspyorm.fields.Float
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Boolean

::: caspyorm.fields.Boolean
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Timestamp

::: caspyorm.fields.Timestamp
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### List

::: caspyorm.fields.List
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Set

::: caspyorm.fields.Set
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true

### Map

::: caspyorm.fields.Map
    handler: python
    rendering:
      show_source: true
      show_root_heading: true
      show_category_heading: true
      show_signature_annotations: true
      show_bases: true
      heading_level: 3
      members_order: source
      docstring_style: google
      preload_modules: true
      filters: ["!^_"]
      merge_init_into_class: true 