> For the complete documentation index, see [llms.txt](https://ciusji.gitbook.io/guinsoo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ciusji.gitbook.io/guinsoo/guides/tutorial/clients-for-guinsoo/nodejs.md).

# NodeJS

{% hint style="info" %}
The database was created as **`MODE=PostgreSQL`**.

MySQL or others dialogs can be created.
{% endhint %}

```javascript
var sequelize = new Sequelize('postgres://sa:sa@localhost:5435/xxx');
// Define User model
// ...
var User = sequelize.define('user', {}); 
user = User.findOne()

console.log(user.get('firstName'));

```
