fietsboek.models.comment module

Comment model.

class fietsboek.models.comment.Comment(**kwargs)

Bases: Base

Represents a comment on a track.

Variables:
  • id (int) – Database ID.

  • author_id (int) – ID of the comment’s author.

  • track_id (int) – ID of the track this comment belongs to.

  • date (datetime.datetime) – Date on which the comment was made.

  • title (str) – Title of the comment.

  • text (str) – Text content of the comment.

  • author (fietsboek.model.user.User) – Author of the comment.

  • track (fietsboek.model.track.Track) – Track that the comment belongs to.

author: Mapped[User]
author_id
date
id
text
title
track: Mapped[Track]
track_id