def from_bulk(
     cls,
     row: Mapping[str, Any],
 ) -> GroupedMessageRow:
     return cls(offset=None,
                project_id=int(row['project_id']),
                id=int(row['id']),
                record_deleted=False,
                record_content=RawGroupMessageRecord(
                    status=int(row['status']),
                    last_seen=postgres_date_to_clickhouse(row['last_seen']),
                    first_seen=postgres_date_to_clickhouse(
                        row['first_seen']),
                    active_at=(postgres_date_to_clickhouse(row['active_at'])
                               if row['active_at'] else None),
                    first_release_id=int(row['first_release_id'])
                    if row['first_release_id'] else None,
                ))
 def from_bulk(cls, row: Mapping[str, Any],) -> GroupAssigneeRow:
     return cls(
         offset=0,
         record_deleted=False,
         project_id=row["project_id"],
         group_id=row["group_id"],
         record_content=GroupAssigneeRecord(
             date_added=postgres_date_to_clickhouse(row["date_added"]),
             user_id=int(row["user_id"]) if row["user_id"] != "" else None,
             team_id=int(row["team_id"]) if row["team_id"] != "" else None,
         ),
     )