kepler.models.note module

The module defines the classes for database models related to notes and notice board.

class kepler.models.note.Note(message, creator_id)

Bases: kepler.models.models_meta.ModifiableBase, sqlalchemy.ext.declarative.api.Base

The class represents a common note message in the database.

created_at

The creation time of the note.

creator_id

The user ID of the creator of the note.

id

The note ID.

message

The note message.

modifier_id
class kepler.models.note.NoticeBoardNote(title_tr_id, message_tr_id, creator_id)

Bases: kepler.models.models_meta.ModifiableBase, sqlalchemy.ext.declarative.api.Base

The class represents the notes in the notice board database table.

created_at

The notice board note creation time.

creator_id

The notice board note creator ID.

id

The notice board note ID.

message_tr_id

The notice board note message translation ID.

modifier_id
title_tr_id

The notice board note title translation ID.

class kepler.models.note.ReservationNote(reservation_id, note_id)

Bases: sqlalchemy.ext.declarative.api.Base

The class maps Notes to reservations.

note_id

The reference to the note that belongs to the reservation.

reservation_id

The reference to the reservation that the note belongs to.