Package posterity :: Module model

Module model



Classes
  UserSession
The UserSession keeps track of the currently logged in user.
  System
Table for storage of system wide settings.
  Account
  Identity
Email sending identity
  Msg
Each Msg instance represents an email message
  Conv
A Conversation is a set of related messages.
  Tag
Functions
 
init_db()
Initializes an empty database.
Variables
  SCHEMA_VERSION = 1
  conv_to_tag = Table('conv_to_tag',MetaData(),Column('tag_id',I...
  belongs_to = <elixir.statements.Statement object at 0x205a330>
  delay_setup = False
  has_and_belongs_to_many = <elixir.statements.Statement object ...
  has_field = <elixir.statements.Statement object at 0x204cdb0>
  has_many = <elixir.statements.Statement object at 0x205a370>
  has_one = <elixir.statements.Statement object at 0x205a350>
  metadata = MetaData()
  objectstore = <elixir.Objectstore object at 0x204c5f0>
  options_defaults = {'auto_primarykey': True, 'autoload': None,...
  using_mapper_options = <elixir.statements.Statement object at ...
  using_options = <elixir.statements.Statement object at 0x204c7d0>
  using_table_options = <elixir.statements.Statement object at 0...
  with_fields = <elixir.statements.Statement object at 0x204cdd0>
Function Details

init_db()

 

Initializes an empty database.

This function creates and initializes the tables needed by posterity.


Variables Details

conv_to_tag

Value:
Table('conv_to_tag',MetaData(),Column('tag_id',Integer(),ForeignKey('t\
ag.id')),Column('conv_id',Integer(),ForeignKey('conv.id')),Column('con\
v_date',DateTime(timezone=False)),Column('conv_date2',DateTime(timezon\
e=False)),schema=None)

has_and_belongs_to_many

Value:
<elixir.statements.Statement object at 0x205a390>

options_defaults

Value:
{'auto_primarykey': True,
 'autoload': None,
 'inheritance': 'single',
 'mapper_options': {},
 'shortnames': False,
 'table_options': {},
 'tablename': None,
 'version_id_col': False}

using_mapper_options

Value:
<elixir.statements.Statement object at 0x204c810>

using_table_options

Value:
<elixir.statements.Statement object at 0x204c7f0>