Guest User

generate.sql

a guest
Jul 26th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.74 KB | None | 0 0
  1. CREATE DATABASE p2pooltip;
  2.  
  3. USE p2pooltip;
  4.  
  5. CREATE TABLE IF NOT EXISTS `tips` (
  6.     `id` BIGINT NOT NULL AUTO_INCREMENT,                        -- index
  7.     `commentid` VARCHAR(10) NOT NULL,                           -- Reddit comment id of tip
  8.     `messageid` VARCHAR(10) NOT NULL,                           -- Reddit message id of Changetip message
  9.     `amount` BIGINT NOT NULL,                                   -- original tip amount, in satoshis
  10.     `sent` BIGINT NOT NULL,                                     -- final tip amount after fees, in satoshis
  11.     `username` VARCHAR(20) NOT NULL,                            -- Reddit username of tipper
  12.     `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,        -- timestamp
  13.     `txid` VARCHAR(64) NOT NULL,                                -- Bitcoin transaction id
  14.     PRIMARY KEY (`id`),
  15.     KEY `commentid` (`commentid`)
  16. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
Advertisement
Add Comment
Please, Sign In to add comment