def __init__(self):
    logging.info('initialize draft')
    self.newDraft = super.session.prepare('\n        insert into draft(sha256_id, note_id, target, ver, symbol, quantity, refer, type, processed, setup)\n        values(?, ?, ?, ?, ?, ?, ?, ?, false, toTimestamp(now())\n        ')
    self.updateSymbolChain = super.session.prepare('\n        update symbol_chain set  symbol =? , ver= ?, block_counter= ?, updated = toTimestamp(now()\n        where sha256_id = ?\n        ')
def __init__(self):
    logging.info('initialize draft')
    self.newDraft = super.session.prepare('\n        insert into draft(sha256_id, note_id, target, ver, symbol, quantity, refer, type, processed, setup)\n        values(?, ?, ?, ?, ?, ?, ?, ?, false, toTimestamp(now())\n        ')
    self.updateSymbolChain = super.session.prepare('\n        update symbol_chain set  symbol =? , ver= ?, block_counter= ?, updated = toTimestamp(now()\n        where sha256_id = ?\n        ')