# Sync db with forest project -- add new models automatically

**URL:** <https://community.forestadmin.com/t/sync-db-with-forest-project-add-new-models-automatically/2160>\
**Category:** Help me!\
**Created:** [March 23, 2021, 4:39pm UTC](https://community.forestadmin.com/t/sync-db-with-forest-project-add-new-models-automatically/2160 "2021-03-23T16:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadiab](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nadiab/32/1812_2.png) [@nadiab](https://community.forestadmin.com/u/nadiab)\
**Post date:** [March 23, 2021, 4:39pm UTC](https://community.forestadmin.com/t/sync-db-with-forest-project-add-new-models-automatically/2160/1 "2021-03-23T16:39:23Z")

</div>

Hey guys,

Hope you’re doing well.  
I’ve seen somewhere that new models aren’t added automatically to forest project (models folder).  
Is there a script (command ?) to run to sync the models with the db ?

Thanks in advance for your response.

Have a nice day,  
Nadia

“forest-express-sequelize”: “^7.0.0",  
“sequelize”: “~5.15.1"

---

<div class="post-metadata">

**Author:** ![anon37102731](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon37102731](https://community.forestadmin.com/u/anon37102731)\
**Post date:** [March 23, 2021, 4:51pm UTC](https://community.forestadmin.com/t/sync-db-with-forest-project-add-new-models-automatically/2160/2 "2021-03-23T16:51:28Z")

</div>

Hi @nadiab,

Indeed models files are not automatically updated and requires a manual update.

If you want to do it automatically, you can perform a `lumber update` command on your local environment. This should update your models according to new changes you made in your database.

You’ll just need to have a `lumber` [version](https://github.com/ForestAdmin/lumber) 4 or above.

Best regards,

---

<div class="post-metadata">

**Author:** ![nadiab](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nadiab/32/1812_2.png) [@nadiab](https://community.forestadmin.com/u/nadiab)\
**Post date:** [March 23, 2021, 5:01pm UTC](https://community.forestadmin.com/t/sync-db-with-forest-project-add-new-models-automatically/2160/3 "2021-03-23T17:01:00Z")

</div>

Thanks for your response @anon37102731, it works !

Have a nice day
