Created
January 16, 2020 22:47
-
-
Save jammaloo/4b4f2dc0621d38fb2d2f75ec23a9f61b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `radacct` ( | |
`radacctid` bigint(21) NOT NULL AUTO_INCREMENT, | |
`acctsessionid` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`acctuniqueid` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`groupname` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`realm` varchar(64) COLLATE utf8_unicode_ci DEFAULT '', | |
`nasipaddress` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`nasportid` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`nasporttype` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`acctstarttime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`acctupdatetime` datetime DEFAULT NULL, | |
`acctstoptime` datetime DEFAULT NULL, | |
`acctinterval` int(12) DEFAULT NULL, | |
`acctsessiontime` int(12) unsigned DEFAULT NULL, | |
`acctauthentic` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`connectinfo_start` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`connectinfo_stop` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`acctinputoctets` bigint(20) DEFAULT NULL, | |
`acctoutputoctets` bigint(20) DEFAULT NULL, | |
`calledstationid` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`callingstationid` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`acctterminatecause` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`servicetype` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`framedprotocol` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`framedipaddress` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', | |
`acctstartdelay` int(12) DEFAULT NULL, | |
`acctstopdelay` int(12) DEFAULT NULL, | |
`xascendsessionsvrkey` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, | |
PRIMARY KEY (`radacctid`,`username`,`acctstarttime`), | |
KEY `username` (`username`), | |
KEY `framedipaddress` (`framedipaddress`), | |
KEY `acctsessionid` (`acctsessionid`), | |
KEY `acctuniqueid` (`acctuniqueid`), | |
KEY `nasipaddress` (`nasipaddress`), | |
KEY `username_2` (`username`,`acctstarttime`) | |
) ENGINE=InnoDB AUTO_INCREMENT=10293716 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci | |
/*!50500 PARTITION BY RANGE COLUMNS(acctstarttime) | |
(PARTITION before20160101 VALUES LESS THAN ('2016-01-01') ENGINE = InnoDB, | |
PARTITION before20170101 VALUES LESS THAN ('2017-01-01') ENGINE = InnoDB, | |
PARTITION before20170601 VALUES LESS THAN ('2017-06-01') ENGINE = InnoDB, | |
PARTITION before20180101 VALUES LESS THAN ('2018-01-01') ENGINE = InnoDB, | |
PARTITION before20180601 VALUES LESS THAN ('2018-06-01') ENGINE = InnoDB, | |
PARTITION before20190101 VALUES LESS THAN ('2019-01-01') ENGINE = InnoDB, | |
PARTITION before20190601 VALUES LESS THAN ('2019-06-01') ENGINE = InnoDB, | |
PARTITION from20200101 VALUES LESS THAN ('2020-01-01') ENGINE = InnoDB, | |
PARTITION future VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB) */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment