block-explorer/sql/lbryexplorer.aux.sql
Akinwale Ariwodola f48e9f8b46 Local sync commit
2017-06-13 19:54:56 +01:00

18 lines
No EOL
816 B
SQL

-- Address Tagging TX tracking
CREATE TABLE `TagAddressRequests`
(
`Id` SERIAL,
`Address` VARCHAR(35) NOT NULL,
`VerificationAmount` DECIMAL(18,8) NOT NULL,
`Tag` VARCHAR(30) NOT NULL,
`TagUrl` VARCHAR(200) NULL,
`IsVerified` TINYINT(1) DEFAULT 0 NOT NULL,
`Created` DATETIME NOT NULL,
`Modified` DATETIME NOT NULL,
PRIMARY KEY `PK_TagAddressRequest` (`Id`),
UNIQUE KEY `Idx_TagAddressRequestId` (`Address`, `VerificationAmount`),
INDEX `Idx_TagAddressRequestVerificationAmount` (`VerificationAmount`),
INDEX `Idx_TagAddressRequestAddress` (`Address`),
INDEX `Idx_TagAddressRequestCreated` (`Created`),
INDEX `Idx_TagAddressRequestModified` (`Modified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;