text: #########################################################################
  ## Define your tables below; for example
  ##
  ## >>> db.define_table('mytable',Field('myfield','string'))
  ##
  ## Fields can be 'string','text','password','integer','double','boolean'
  ##       'date','time','datetime','blob','upload', 'reference TABLENAME'
  ## There is an implicit 'id integer autoincrement' field
  ## Consult manual for more options, validators, etc.
  ##
  ## More API examples for controllers:
  ##
  ## >>> db.mytable.insert(myfield='value')
  ## >>> rows=db(db.mytable.myfield=='value').select(db.mytable.ALL)
  ## >>> for row in rows: print row.id, row.myfield
  #########################################################################
  
  db.define_table('rating',
                  Field('user_id', db.auth_user, default=auth.user_id),
                  Field('image_id', 'integer'),
                  Field('thumbs'), # This field can have value 'u' (for up), 'd' (for down), or None (no vote).
                  )
  