Example #1
0
 class Meta:
     idf = IDFormatter('{exchange}_{symbol}_{quote_type}_{quote_at}')
     idx1 = Index(['exchange', 'symbol', 'quote_type', 'quote_at'],
                  unique=True)
     idx2 = Index(['exchange', 'quote_at'])
Example #2
0
 class Meta:
     idf = IDFormatter('{user_id}_{date}')
     idx1 = Index(['user_id', 'date'], unique=True)
Example #3
0
 class Meta:
     idf = IDFormatter('{exchange}_{login_name}')
     idx1 = Index(['investor', 'exchange'], unique=True)
     idx2 = Index(['exchange', 'login_name'], unique=True)
     idx3 = Index('user')
Example #4
0
 class Meta:
     idf = IDFormatter('{mobile}')
     idx1 = Index('mobile', unique=True)
     idx2 = Index('_is_admin')
     idx3 = Index('_is_active')
     idx4 = Index('username', unique=True)
Example #5
0
 class Meta:
     idf = IDFormatter(next_id)
     idx1 = Index('name')
Example #6
0
 class Meta:
     idf = IDFormatter('{id_number}')
     idx1 = Index(['user', 'order'], unique=True)
Example #7
0
 class Meta:
     idf = IDFormatter('{exchange}_{symbol}')
     idx1 = Index(['exchange', 'symbol'], unique=True)
     idx2 = Index('from_url')
Example #8
0
 class Meta:
     idf = IDFormatter('{exchange}_{symbol}')
Example #9
0
File: wechat.py Project: maocis/ybk
 class Meta:
     idf = IDFormatter('{access_token}')
     idx1 = Index('expires_at', expireAfterSeconds=7200)
Example #10
0
 class Meta:
     idf = IDFormatter('{url}')
     idx1 = Index('url', unique=True)
     idx2 = Index(['updated_at', 'type_'])
     idx3 = Index(['published_at', 'type_'])
     idx4 = Index(['exchange', 'type_'])
Example #11
0
 class Meta:
     idf = IDFormatter('{exchange}_{user}_{collection}')
     idx1 = Index('exchange')
     idx2 = Index('user')
     idx3 = Index('collection')
Example #12
0
 class Meta:
     idf = IDFormatter('{account}_{date}')
     idx1 = Index(['account', 'date'], unique=True)
Example #13
0
 class Meta:
     idf = IDFormatter('{user}_{exchange}_{login_name}')
Example #14
0
 class Meta:
     idf = IDFormatter('{mobile}')
     idx1 = Index('mobile', unique=True)
     idx2 = Index('username')
Example #15
0
 class Meta:
     idf = IDFormatter('{abbr}')
     idx1 = Index('abbr', unique=True)
Example #16
0
 class Meta:
     idf = IDFormatter('{user_id}_{login_name}')
Example #17
0
 class Meta:
     idf = IDFormatter('{name}')