# Trying to create model collection in database

**URL:** <https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379>\
**Category:** Uncategorized\
**Created:** [August 17, 2023, 11:03am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379 "2023-08-17T11:03:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [August 17, 2023, 11:03am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/1 "2023-08-17T11:03:28Z")

</div>

Good Evening all,  
Is there anyone tried to creating the other collection except default collections in mongodb database? If you tried, please tell me how to do it…  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [August 17, 2023, 5:34pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/2 "2023-08-17T17:34:52Z")

</div>

Its not clear at all what you are trying to accomplish

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [August 17, 2023, 5:38pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/3 "2023-08-17T17:38:10Z")

</div>

Hii,  
we have user collection in database right. So I want to create model collection in database. How to do this?  
Thank you

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [August 17, 2023, 5:41pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/4 "2023-08-17T17:41:59Z")

</div>

Google is your friend. I don’t mind helping point people in the right direction, but you are talking about hacking at the code for GenieACS. You really need a higher level of understanding if you want to do that. Or you can engage with a **paid** support contract by contacting [sales@genieacs.com](mailto:sales@genieacs.com).

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [August 17, 2023, 5:58pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/5 "2023-08-17T17:58:10Z")

</div>

I don’t think, my question is hacking question. I am asked casually. I trying from last two day. Thank you your suggestion. Again thanks for reply.

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [August 18, 2023, 4:43pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/6 "2023-08-18T16:43:19Z")

</div>

Are you talking about this collection?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/e/e4087cc9105ee397cadf2c2f59eddf474d0ca0e0.png)

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [August 18, 2023, 4:48pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/7 "2023-08-18T16:48:07Z")

</div>

Yes. I am talking about this collection.

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [August 18, 2023, 4:53pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/8 "2023-08-18T16:53:24Z")

</div>

Got it, have you tried to use mongoose? Recently I was modifying the device collections in my ext script  
Maybe you could “create” some collections too, actually it’s easy if I’m thinking right

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [August 18, 2023, 5:41pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/9 "2023-08-18T17:41:45Z")

</div>

Thanks for your reply. Yes, I am using mongoose. I tried but i don’t no where I want to do the changes.

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [August 21, 2023, 11:25am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/10 "2023-08-21T11:25:54Z")

</div>

Well, you need to know what you want and maybe I could help you.  
An idea, it’s manipulate your mongo by an ext script, like I did

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [September 4, 2023, 5:04pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/11 "2023-09-04T17:04:25Z")

</div>

Hii, I got the model collection in database. @Felipe thanks for your reply. If you don’t mind, if you have any Documentation. How the Backend api’s called and where that Backend api’s present. Working flow backend code. This is my email ID [sushmargowda27@gmail.com](mailto:sushmargowda27@gmail.com).

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [September 4, 2023, 6:44pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/12 "2023-09-04T18:44:44Z")

</div>

I’m glad I could help you!

You can see [API documentation](https://docs.genieacs.com/en/latest/api-reference.html) for more information on how to use

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [September 5, 2023, 1:57am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/13 "2023-09-05T01:57:41Z")

</div>

Good morning, @Felipe Thank you…

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [September 12, 2023, 9:02am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/14 "2023-09-12T09:02:24Z")

</div>

Hii, I have one question. If we connected one CPE to Genieacs, how that Tr069 fetch the details from CPE. @Felipe .

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [September 12, 2023, 11:39am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/15 "2023-09-12T11:39:23Z")

</div>

If I’m not wrong, after you “connected” your CPE to Genie, next inform cpe will give all params to server, you can set the inform time in CPE and in your inform provision.

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [September 12, 2023, 12:29pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/16 "2023-09-12T12:29:27Z")

</div>

Sorry, i don’t know much about this because I am new to this project. Yesterday only I connected CPE to Genieacs. You already told, if we connect the CPE to Genieacs. CPE will give the all the parameters to Genieacs server. So can you please tell me, how that all the parameters we are fetching and displaying on the UI.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [September 12, 2023, 4:13pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/17 "2023-09-12T16:13:33Z")

</div>

> [@Felipe](#):
>
> next inform cpe will give all params to server

This is not accurate.

---

<div class="post-metadata">

**Author:** ![Felipe](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/felipe/32/1949_2.png) [@Felipe](https://forum.genieacs.com/u/Felipe)\
**Post date:** [September 12, 2023, 4:30pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/18 "2023-09-12T16:30:23Z")

</div>

So I suggest you help him if you can 🙂

---

<div class="post-metadata">

**Author:** ![Sushmargowda27](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sushmargowda27/32/1459_2.png) [@Sushmargowda27](https://forum.genieacs.com/u/Sushmargowda27)\
**Post date:** [September 13, 2023, 4:09am UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/19 "2023-09-13T04:09:36Z")

</div>

Help me. @akcoder how is working.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [September 13, 2023, 4:40pm UTC](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379/20 "2023-09-13T16:40:15Z")

</div>

> [@Felipe](#):
>
> So I suggest you help him if you can 🙂

If only there was [documentation](https://docs.genieacs.com/) someone could read that had the answers they seek…

[Next page](https://forum.genieacs.com/t/trying-to-create-model-collection-in-database/4379.md?page=2)
