mirror of
https://github.com/GOSTSec/poolserver
synced 2025-01-15 01:00:10 +00:00
shared table added
This commit is contained in:
parent
bbf3a29fe2
commit
a075d555db
@ -1,10 +1,24 @@
|
|||||||
|
DROP TABLE IF EXISTS `pool_worker`;
|
||||||
CREATE TABLE IF NOT EXISTS `pool_worker`
|
CREATE TABLE IF NOT EXISTS `pool_worker`
|
||||||
(
|
(
|
||||||
`id` INT NOT NULL,
|
`id` INT(255) NOT NULL AUTO_INCREMENT,
|
||||||
`mindiff` INT,
|
`username` VARCHAR(50) DEFAULT NULL,
|
||||||
`username` VARCHAR(64),
|
`password` VARCHAR(50) DEFAULT NULL,
|
||||||
`password` VARCHAR(64),
|
`mindiff` int(10) unsigned NOT NULL DEFAULT '1',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
)
|
||||||
ENGINE = InnoDB;
|
ENGINE = InnoDB;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `shares`;
|
||||||
|
CREATE TABLE `shares` (
|
||||||
|
`id` INT NOT NULL AUTO_INCREMENT,
|
||||||
|
`rem_host` varchar(255) NOT NULL,
|
||||||
|
`username` varchar(120) NOT NULL,
|
||||||
|
`our_result` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
`upstream_result` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
`reason` varchar(50) DEFAULT NULL,
|
||||||
|
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
`difficulty` int(10) unsigned NOT NULL DEFAULT '1',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user