# Class: MessageDAO

## MessageDAO

#### new MessageDAO(db)

  Data access object for messages.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `db` | Connection | instance of connection to data storage.

  Source:
    - app/model/dao/MessageDAO.js, line 12

### Methods

#### new() → {Message}

  Creates new message entity with prefilled fields.

  Source:
    - app/model/dao/MessageDAO.js, line 22

  ##### Returns:

  Type
    Message