import BaseModel from "./base.js"

export default class Conversation extends BaseModel {
  static get collection() {
    return "conversations"
  }

  static get visibleFields() {
    return [
      "_id",

      "name",
      "type",
      "description",
      "image_object",
      "image_url",

      "owner_id",
      "opponent_id",

      "created_at",
      "updated_at",

      "last_message", // virtual
      "unread_messages_count", // virtual
    ]
  }
}
