Skip to content

feat: implement database, schemas and CRUD logic for US #6#13

Open
eduardonunesfvm wants to merge 8 commits into
SouJunior:developfrom
eduardonunesfvm:feature/issue-67-modificacao-api
Open

feat: implement database, schemas and CRUD logic for US #6#13
eduardonunesfvm wants to merge 8 commits into
SouJunior:developfrom
eduardonunesfvm:feature/issue-67-modificacao-api

Conversation

@eduardonunesfvm

Copy link
Copy Markdown

Descrição das Alterações

Implementação completa da lógica de backend para a User Story #6, cobrindo o banco de dados, os contratos de dados (schemas) e as regras de persistência.

O que foi implementado:

  1. Banco de Dados (Alembic): Criação da migration para adicionar os campos de indicação (referred_by_name, referred_by_position, referred_by_linkedin), a bio, o indicador terms_accepted e o carimbo de auditoria acceptance_date na tabela de voluntários.
  2. Contratos da API (Pydantic v1): - Atualização da classe VolunteerBase utilizando herança para disponibilizar os campos de forma limpa.
    • Implementação de validações estritas (@validator e Regex) para remover caracteres especiais de nomes/cargos e garantir o formato /in/ nos perfis do LinkedIn de indicação.
  3. Regra de Negócio (CRUD): Injeção automatizada de timestamp (datetime.now()) no campo acceptance_date assim que o cadastro detecta o aceite dos termos.

Closes #67

@eduardonunesfvm eduardonunesfvm requested a review from wouerner June 12, 2026 20:59
@eduardonunesfvm eduardonunesfvm self-assigned this Jun 12, 2026
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f11de743-ec3f-46e9-b66b-89cf337438a6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@djhonantanbatista djhonantanbatista self-requested a review June 15, 2026 23:40

@djhonantanbatista djhonantanbatista left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants