Activity - applebiter/gnatwriter GitHub Wiki

The Activity class documents any controller endpoint activities. Its entries are terse and connect user IDs to timestamps and actual activities in a way that allows the user to get a work history at a glance, if desired.

Attributes

The attributes that are mapped to the activities table in the database:

  • id: int The Activity ID
  • user_id: int The User ID of the Activity's owner
  • summary: str The Activity summary describes what the User did
  • created: str The Activity creation datetime stored in the form yy-mm-dd hh:mm:ss

The complex attributes supplied by the ORM:

  • user: User The system user or the user currently logged in

serialize()

serialize ( ) -> dict Only the attributes mapped to the activities table will be present in the returned dictionary.