loopback + user model migrate into postgres database
<p>I am new in loopback,</p>

<p>I trying to work user models like register,login.
I followed this url - <a href="https://github.com/strongloop/loopback-example-user-management" rel="nofollow">https://github.com/strongloop/loopback-example-user-management</a></p>

<p>Its working good but its working without postgres database.</p>

<p>I added the code datasoruces.json.</p>

<pre><code>{
    "db": {
        "name": "db",
        "connector": "memory"
    },
    "mydata": {
        "postgres": {
            "host": "localhost",
            "port": "5432",
            "database": "myapps_login",
            "username": "postgres",
            "password": "password",
            "name": "postgres",
            "debug": true,
            "connector": "postgresql"
        }
    }
</code></pre>

<p>How can I access user model using database?</p>