# Criando tabelas

O último passo é adicionar nosso novo modelo para nosso banco de dados. Primeiro temos que fazer o Django saber que nós temos algumas mudanças em nosso modelo (só criamos isso), digite:

```
python3 manage.py makemigrations blog
```

Algo parecido com isto deve aparecer para você:

```
…@djangoGirls:/mnt/project$ python3 manage.py makemigrations blog
Migrations for 'blog':
  0001_initial.py:
  - Create model Post
```

Django prepara um arquivo de migração que temos de aplicar agora para nosso banco de dados. Digite:

```
python3 manage.py migrate blog
```

A saída deve ser:

```
…@djangoGirls:/mnt/project$ python3 manage.py migrate blog
Operations to perform:
  Apply all migrations: blog
Running migrations:
  Applying blog.0001_initial... OK
```

Viva! Nosso modelo de Post está agora em nosso banco de dados, seria um prazer vê-lo, certo? Salte para o próximo capítulo para ver o aspecto do seu Post!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dgportoalegre.gitbook.io/djangogirls/modelos-do-django/modelo-do-django/criando-tabelas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
