class Intemp(Document): __collection__ = 'intemp' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount_usd': float, 'package': float, 'package_string': unicode, 'status': int, 'date_added': datetime.datetime, 'amount_frofit': float, 'upgrade': int, 'coin_amount': float, 'date_upgrade': datetime.datetime, 'reinvest': int, 'total_income': float, 'status_income': int, 'date_income': datetime.datetime, 'date_profit': datetime.datetime, 'currency': unicode } default_values = {'date_added': datetime.datetime.utcnow()} use_dot_notation = True db.register([Intemp])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Usva(Document): __collection__ = 'usva' use_dot_notation = True db.register([Usva])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Withdrawal(Document): __collection__ = 'withdrawa' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount': float, 'tx': unicode, 'status': int, 'date_added': datetime.datetime, 'wallet': unicode, 'type': int, 'code_active': unicode, 'active_email': int } use_dot_notation = True db.register([Withdrawal])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Contact(Document): __collection__ = 'contact' structure = { 'uid': unicode, 'username': unicode, 'name': unicode, 'address': unicode, 'currency': unicode, 'date_added': datetime.datetime, 'status': int, } use_dot_notation = True db.register([Contact])
'ch_wallet': 0, 'balance_wallet': 0 } use_dot_notation = True def __repr__(self): return '<User %r>' % self.email # Flask-Login integration def is_authenticated(self): return True def is_active(self): return True def is_anonymous(self): return False def get_id(self): return self._id def get_role(self): return self.role def get_user_home(self): role = db['roles'].find_one({'_id': self.get_role()}) return role['home_page'] db.register([User])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Payment(Document): __collection__ = 'payment' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount_usd': float, 'amount': float, 'status': int, 'date_added': datetime.datetime, 'address': unicode, 'currency': unicode, 'types': unicode } default_values = {'date_added': datetime.datetime.utcnow()} use_dot_notation = True db.register([Payment])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Deposit(Document): __collection__ = 'deposit' structure = { 'uid': unicode, 'username': unicode, 'fullname': unicode, 'amount': float, 'monthly': float, 'status': int, 'date_added': datetime.datetime, 'date_finish': datetime.datetime } default_values = {'date_added': datetime.datetime.utcnow()} use_dot_notation = True db.register([Deposit])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Tx(Document): __collection__ = 'tx' structure = { 'status': int 'tx': unicode, 'date_added' : datetime.datetime, 'amount' : float, 'confirm' : int, 'user_id' : unicode } use_dot_notation = True db.register([Tx])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Profit(Document): __collection__ = 'profit' structure = { 'date_added': datetime.datetime, 'percent': float, 'status': int } use_dot_notation = True db.register([Profit])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class TxDeposit(Document): __collection__ = 'txdeposit' structure = { 'confirmations': int, 'user_id': unicode, 'uid': unicode, 'username': unicode, 'tx': unicode, 'amount': float, 'type': unicode, 'date_added' : datetime.datetime, 'status': int, 'address': unicode } use_dot_notation = True db.register([TxDeposit])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class WithdrawalPayment(Document): __collection__ = 'withdrawal_payment' structure = { 'uid': unicode, 'detail': unicode, 'amount_sub': float, 'amount_rest': float, 'amount_btc': float, 'txtid': unicode, 'status': float, 'date_added': datetime.datetime, 'wallet': unicode, 'withdraw_id': unicode, 'method_payment': int } use_dot_notation = True db.register([WithdrawalPayment])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Device(Document): __collection__ = 'device' structure = { 'fullname': unicode, 'profit': float, 'address': unicode, 'telephone': unicode, 'description': unicode, 'status': int, 'date_added': datetime.datetime, 'date_finish': datetime.datetime } default_values = {'date_added': datetime.datetime.utcnow()} use_dot_notation = True db.register([Device])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Trading(Document): __collection__ = 'trading' structure = { 'amount': unicode, 'p_node': unicode, 'user_id': unicode, 'date': datetime.datetime, 'team_volume': unicode } use_dot_notation = True db.register([Trading])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Verify(Document): __collection__ = 'verify' structure = { 'user_id': unicode, 'uid': unicode, 'username': unicode, 'img1': unicode, 'img2': unicode, 'img3': unicode, 'date_added': datetime.datetime, 'id_number': unicode, 'admin_note': unicode, 'status': float } use_dot_notation = True db.register([Verify])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Transfer(Document): __collection__ = 'transfer' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount': float, 'status': int, 'from': unicode, 'to': unicode, 'date_added': datetime.datetime, 'type': unicode } use_dot_notation = True db.register([Transfer])
from rex import app, db import validators __author__ = 'taijoe' class Invoice(Document): __collection__ = 'invoice' structure = { 'uid': unicode, 'username': unicode, 'amount': float, 'invoid_id': unicode, 'serect': unicode, 'txt': unicode, 'callback': unicode, 'input_wallet': unicode, 'investment_id': unicode, 'confirmations': int, 'bitcoin': unicode, 'my_address': unicode, 'fee_percent': unicode, 'type': int } default_values = {'confirmations': 0} use_dot_notation = True db.register([Invoice])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Code(Document): __collection__ = 'code' structure = { 'status': int 'code': unicode, 'date_added' : datetime.datetime, 'user_id' : unicode, 'username' : unicode, 'uid' : unicode } use_dot_notation = True db.register([Code])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Tree_all(Document): __collection__ = 'tree_all' use_dot_notation = True db.register([Tree_all])
'email': validators.max_length(120) } default_values = {'creation': datetime.datetime.utcnow()} use_dot_notation = True def __repr__(self): return '<User %r>' % self.name # Flask-Login integration def is_authenticated(self): return True def is_active(self): return True def is_anonymous(self): return False def get_id(self): return self._id def get_role(self): return self.role def get_user_home(self): role = db['roles'].find_one({'_id': self.get_role()}) return role['home_page'] db.register([User])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Wallet(Document): __collection__ = 'wallet_payments' structure = { 'uid': unicode, 'username': unicode, 'wallet': unicode, 'day_profit': float, 'number_prfit': float, 'amount': float, 'amount_btc': float, 'date_finish': unicode, 'total_date': float } use_dot_notation = True db.register([Wallet])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class IcoOrder(Document): __collection__ = 'ico' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount_sva': float, 'amount_btc': float, 'rate': float, 'date_added': datetime.datetime } use_dot_notation = True db.register([IcoOrder])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Support(Document): __collection__ = 'tree' structure = { 'customer_id': unicode, 'count_left': unicode, 'count_right': unicode, 'json_tree': unicode, 'username': unicode } use_dot_notation = True db.register([Support])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Exchange(Document): __collection__ = 'exchange' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'detail': unicode, 'amount_form': float, 'amount_to': float, 'currency_from': unicode, 'currency_to': unicode, 'price_form': float, 'price_to': float, 'date_added': datetime.datetime } use_dot_notation = True db.register([Exchange])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Icosum(Document): __collection__ = 'icosum' use_dot_notation = True db.register([Icosum])
from mongokit import Document from rex import app, db import validators __author__ = 'carlozamagni' class Class(Document): __collection__ = 'classes' structure = { 'name': unicode, 'academic_year': unicode, } validators = { 'name': validators.max_length(50), 'academic_year': validators.academic_year() } use_dot_notation = True def __repr__(self): return '<Class %r>' % self.name db.register([Class])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Admin(Document): __collection__ = 'admins' structure = { 'username': unicode, 'email': unicode, 'password': unicode, 'sum_withdraw': float, 'sum_invest': float, 'status_withdraw': int } use_dot_notation = True db.register([Admin])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Withdraw(Document): __collection__ = 'withdraw' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount': float, 'amount_usd': unicode, 'status': int, 'date_added': datetime.datetime, 'wallet': unicode, 'code_active': unicode, 'currency': unicode, 'active_email': int, 'price': float } use_dot_notation = True db.register([Withdraw])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Dialing(Document): __collection__ = 'dialing' structure = { 'customer_id': unicode, 'username': unicode, 'package': float, 'amount_coin': float, 'currency': unicode, 'date_added': datetime.datetime, 'status': int } use_dot_notation = True db.register([Dialing])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class History(Document): __collection__ = 'history' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'fullname': unicode, 'detail': unicode, 'amount': float, 'status' : float, 'date_added' : datetime.datetime, 'date_profit' : datetime.datetime } use_dot_notation = True db.register([History])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Ticker(Document): __collection__ = 'ticker' structure = { 'btc_usd': float, 'eth_usd': float, 'bth_usd': float, 'ltc_usd': float } default_values = {'btc_usd': 0, 'eth_usd': 0, 'bth_usd': 0, 'ltc_usd': 0} use_dot_notation = True db.register([Ticker])
__author__ = 'taijoe' class Investment(Document): __collection__ = 'investment' structure = { 'uid': unicode, 'user_id': unicode, 'username': unicode, 'amount_usd': float, 'package': float, 'status': int, 'date_added': datetime.datetime, 'amount_frofit': float, 'upgrade': int, 'coin_amount': float, 'date_upgrade': datetime.datetime, 'reinvest': int, 'total_income': float, 'status_income': int, 'date_income': datetime.datetime, 'date_profit': datetime.datetime, 'note': unicode } default_values = {'date_added': datetime.datetime.utcnow()} use_dot_notation = True db.register([Investment])
import datetime from mongokit import Document from rex import app, db import validators __author__ = 'taijoe' class Notification(Document): __collection__ = 'notification' structure = { 'user_id': unicode, 'uid': unicode, 'username': unicode, 'content': unicode, 'date_added': datetime.datetime, 'status': int, 'type': unicode, 'read': int } use_dot_notation = True db.register([Notification])