this is file
http://www.4shared.com/document/nLVs7XYG/hotspot.html
thax 🙂
———————————————————————————————
— version 4.0.4.1
— http://www.phpmyadmin.net
—
— Host: 127.0.0.1
— Generation Time: Nov 28, 2013 at 01:59 AM
— Server version: 5.5.32
— PHP Version: 5.4.19
SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”;
SET time_zone = “+00:00″;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
—
— Database: `hotspot`
—
CREATE DATABASE IF NOT EXISTS `hotspot` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `hotspot`;
— ——————————————————–
—
— Table structure for table `billingplan`
—
CREATE TABLE IF NOT EXISTS `billingplan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`amount` int(255) NOT NULL,
`valid_for` int(11) DEFAULT NULL,
`price` float NOT NULL,
`IdleTimeout` int(255) NOT NULL,
`simultaneous` int(10) NOT NULL,
`redirect_url` varchar(255) NOT NULL,
`bw_upload` int(255) NOT NULL,
`bw_download` int(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `ci_sessions`
—
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`session_id` varchar(40) NOT NULL DEFAULT ‘0’,
`ip_address` varchar(16) NOT NULL DEFAULT ‘0’,
`user_agent` varchar(50) NOT NULL,
`last_activity` int(10) unsigned NOT NULL DEFAULT ‘0’,
`session_data` text,
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
— ——————————————————–
—
— Table structure for table `expirationplan`
—
CREATE TABLE IF NOT EXISTS `expirationplan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`price` float NOT NULL DEFAULT ‘0’,
`amount` varchar(255) NOT NULL,
`bw_download` int(10) DEFAULT NULL,
`bw_upload` int(10) DEFAULT NULL,
`idletimeout` int(10) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `expiration_account`
—
CREATE TABLE IF NOT EXISTS `expiration_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`expiration_plan` varchar(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `fa_country`
—
CREATE TABLE IF NOT EXISTS `fa_country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=240 ;
—
— Dumping data for table `fa_country`
—
INSERT INTO `fa_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALUES
(1, ‘AF’, ‘Afghanistan’, ‘AFG’, 4),
(2, ‘AL’, ‘Albania’, ‘ALB’, 8),
(3, ‘DZ’, ‘Algeria’, ‘DZA’, 12),
(4, ‘AS’, ‘American Samoa’, ‘ASM’, 16),
(5, ‘AD’, ‘Andorra’, ‘AND’, 20),
(6, ‘AO’, ‘Angola’, ‘AGO’, 24),
(7, ‘AI’, ‘Anguilla’, ‘AIA’, 660),
(8, ‘AQ’, ‘Antarctica’, NULL, NULL),
(9, ‘AG’, ‘Antigua and Barbuda’, ‘ATG’, 28),
(10, ‘AR’, ‘Argentina’, ‘ARG’, 32),
(11, ‘AM’, ‘Armenia’, ‘ARM’, 51),
(12, ‘AW’, ‘Aruba’, ‘ABW’, 533),
(13, ‘AU’, ‘Australia’, ‘AUS’, 36),
(14, ‘AT’, ‘Austria’, ‘AUT’, 40),
(15, ‘AZ’, ‘Azerbaijan’, ‘AZE’, 31),
(16, ‘BS’, ‘Bahamas’, ‘BHS’, 44),
(17, ‘BH’, ‘Bahrain’, ‘BHR’, 48),
(18, ‘BD’, ‘Bangladesh’, ‘BGD’, 50),
(19, ‘BB’, ‘Barbados’, ‘BRB’, 52),
(20, ‘BY’, ‘Belarus’, ‘BLR’, 112),
(21, ‘BE’, ‘Belgium’, ‘BEL’, 56),
(22, ‘BZ’, ‘Belize’, ‘BLZ’, 84),
(23, ‘BJ’, ‘Benin’, ‘BEN’, 204),
(24, ‘BM’, ‘Bermuda’, ‘BMU’, 60),
(25, ‘BT’, ‘Bhutan’, ‘BTN’, 64),
(26, ‘BO’, ‘Bolivia’, ‘BOL’, 68),
(27, ‘BA’, ‘Bosnia and Herzegovina’, ‘BIH’, 70),
(28, ‘BW’, ‘Botswana’, ‘BWA’, 72),
(29, ‘BV’, ‘Bouvet Island’, NULL, NULL),
(30, ‘BR’, ‘Brazil’, ‘BRA’, 76),
(31, ‘IO’, ‘British Indian Ocean Territory’, NULL, NULL),
(32, ‘BN’, ‘Brunei Darussalam’, ‘BRN’, 96),
(33, ‘BG’, ‘Bulgaria’, ‘BGR’, 100),
(34, ‘BF’, ‘Burkina Faso’, ‘BFA’, 854),
(35, ‘BI’, ‘Burundi’, ‘BDI’, 108),
(36, ‘KH’, ‘Cambodia’, ‘KHM’, 116),
(37, ‘CM’, ‘Cameroon’, ‘CMR’, 120),
(38, ‘CA’, ‘Canada’, ‘CAN’, 124),
(39, ‘CV’, ‘Cape Verde’, ‘CPV’, 132),
(40, ‘KY’, ‘Cayman Islands’, ‘CYM’, 136),
(41, ‘CF’, ‘Central African Republic’, ‘CAF’, 140),
(42, ‘TD’, ‘Chad’, ‘TCD’, 148),
(43, ‘CL’, ‘Chile’, ‘CHL’, 152),
(44, ‘CN’, ‘China’, ‘CHN’, 156),
(45, ‘CX’, ‘Christmas Island’, NULL, NULL),
(46, ‘CC’, ‘Cocos (Keeling) Islands’, NULL, NULL),
(47, ‘CO’, ‘Colombia’, ‘COL’, 170),
(48, ‘KM’, ‘Comoros’, ‘COM’, 174),
(49, ‘CG’, ‘Congo’, ‘COG’, 178),
(50, ‘CD’, ‘Congo, the Democratic Republic of the’, ‘COD’, 180),
(51, ‘CK’, ‘Cook Islands’, ‘COK’, 184),
(52, ‘CR’, ‘Costa Rica’, ‘CRI’, 188),
(53, ‘CI’, ‘Cote D”Ivoire’, ‘CIV’, 384),
(54, ‘HR’, ‘Croatia’, ‘HRV’, 191),
(55, ‘CU’, ‘Cuba’, ‘CUB’, 192),
(56, ‘CY’, ‘Cyprus’, ‘CYP’, 196),
(57, ‘CZ’, ‘Czech Republic’, ‘CZE’, 203),
(58, ‘DK’, ‘Denmark’, ‘DNK’, 208),
(59, ‘DJ’, ‘Djibouti’, ‘DJI’, 262),
(60, ‘DM’, ‘Dominica’, ‘DMA’, 212),
(61, ‘DO’, ‘Dominican Republic’, ‘DOM’, 214),
(62, ‘EC’, ‘Ecuador’, ‘ECU’, 218),
(63, ‘EG’, ‘Egypt’, ‘EGY’, 818),
(64, ‘SV’, ‘El Salvador’, ‘SLV’, 222),
(65, ‘GQ’, ‘Equatorial Guinea’, ‘GNQ’, 226),
(66, ‘ER’, ‘Eritrea’, ‘ERI’, 232),
(67, ‘EE’, ‘Estonia’, ‘EST’, 233),
(68, ‘ET’, ‘Ethiopia’, ‘ETH’, 231),
(69, ‘FK’, ‘Falkland Islands (Malvinas)’, ‘FLK’, 238),
(70, ‘FO’, ‘Faroe Islands’, ‘FRO’, 234),
(71, ‘FJ’, ‘Fiji’, ‘FJI’, 242),
(72, ‘FI’, ‘Finland’, ‘FIN’, 246),
(73, ‘FR’, ‘France’, ‘FRA’, 250),
(74, ‘GF’, ‘French Guiana’, ‘GUF’, 254),
(75, ‘PF’, ‘French Polynesia’, ‘PYF’, 258),
(76, ‘TF’, ‘French Southern Territories’, NULL, NULL),
(77, ‘GA’, ‘Gabon’, ‘GAB’, 266),
(78, ‘GM’, ‘Gambia’, ‘GMB’, 270),
(79, ‘GE’, ‘Georgia’, ‘GEO’, 268),
(80, ‘DE’, ‘Germany’, ‘DEU’, 276),
(81, ‘GH’, ‘Ghana’, ‘GHA’, 288),
(82, ‘GI’, ‘Gibraltar’, ‘GIB’, 292),
(83, ‘GR’, ‘Greece’, ‘GRC’, 300),
(84, ‘GL’, ‘Greenland’, ‘GRL’, 304),
(85, ‘GD’, ‘Grenada’, ‘GRD’, 308),
(86, ‘GP’, ‘Guadeloupe’, ‘GLP’, 312),
(87, ‘GU’, ‘Guam’, ‘GUM’, 316),
(88, ‘GT’, ‘Guatemala’, ‘GTM’, 320),
(89, ‘GN’, ‘Guinea’, ‘GIN’, 324),
(90, ‘GW’, ‘Guinea-Bissau’, ‘GNB’, 624),
(91, ‘GY’, ‘Guyana’, ‘GUY’, 328),
(92, ‘HT’, ‘Haiti’, ‘HTI’, 332),
(93, ‘HM’, ‘Heard Island and Mcdonald Islands’, NULL, NULL),
(94, ‘VA’, ‘Holy See (Vatican City State)’, ‘VAT’, 336),
(95, ‘HN’, ‘Honduras’, ‘HND’, 340),
(96, ‘HK’, ‘Hong Kong’, ‘HKG’, 344),
(97, ‘HU’, ‘Hungary’, ‘HUN’, 348),
(98, ‘IS’, ‘Iceland’, ‘ISL’, 352),
(99, ‘IN’, ‘India’, ‘IND’, 356),
(100, ‘ID’, ‘Indonesia’, ‘IDN’, 360),
(101, ‘IR’, ‘Iran, Islamic Republic of’, ‘IRN’, 364),
(102, ‘IQ’, ‘Iraq’, ‘IRQ’, 368),
(103, ‘IE’, ‘Ireland’, ‘IRL’, 372),
(104, ‘IL’, ‘Israel’, ‘ISR’, 376),
(105, ‘IT’, ‘Italy’, ‘ITA’, 380),
(106, ‘JM’, ‘Jamaica’, ‘JAM’, 388),
(107, ‘JP’, ‘Japan’, ‘JPN’, 392),
(108, ‘JO’, ‘Jordan’, ‘JOR’, 400),
(109, ‘KZ’, ‘Kazakhstan’, ‘KAZ’, 398),
(110, ‘KE’, ‘Kenya’, ‘KEN’, 404),
(111, ‘KI’, ‘Kiribati’, ‘KIR’, 296),
(112, ‘KP’, ‘Korea, Democratic People”s Republic of’, ‘PRK’, 408),
(113, ‘KR’, ‘Korea, Republic of’, ‘KOR’, 410),
(114, ‘KW’, ‘Kuwait’, ‘KWT’, 414),
(115, ‘KG’, ‘Kyrgyzstan’, ‘KGZ’, 417),
(116, ‘LA’, ‘Lao People”s Democratic Republic’, ‘LAO’, 418),
(117, ‘LV’, ‘Latvia’, ‘LVA’, 428),
(118, ‘LB’, ‘Lebanon’, ‘LBN’, 422),
(119, ‘LS’, ‘Lesotho’, ‘LSO’, 426),
(120, ‘LR’, ‘Liberia’, ‘LBR’, 430),
(121, ‘LY’, ‘Libyan Arab Jamahiriya’, ‘LBY’, 434),
(122, ‘LI’, ‘Liechtenstein’, ‘LIE’, 438),
(123, ‘LT’, ‘Lithuania’, ‘LTU’, 440),
(124, ‘LU’, ‘Luxembourg’, ‘LUX’, 442),
(125, ‘MO’, ‘Macao’, ‘MAC’, 446),
(126, ‘MK’, ‘Macedonia, the Former Yugoslav Republic of’, ‘MKD’, 807),
(127, ‘MG’, ‘Madagascar’, ‘MDG’, 450),
(128, ‘MW’, ‘Malawi’, ‘MWI’, 454),
(129, ‘MY’, ‘Malaysia’, ‘MYS’, 458),
(130, ‘MV’, ‘Maldives’, ‘MDV’, 462),
(131, ‘ML’, ‘Mali’, ‘MLI’, 466),
(132, ‘MT’, ‘Malta’, ‘MLT’, 470),
(133, ‘MH’, ‘Marshall Islands’, ‘MHL’, 584),
(134, ‘MQ’, ‘Martinique’, ‘MTQ’, 474),
(135, ‘MR’, ‘Mauritania’, ‘MRT’, 478),
(136, ‘MU’, ‘Mauritius’, ‘MUS’, 480),
(137, ‘YT’, ‘Mayotte’, NULL, NULL),
(138, ‘MX’, ‘Mexico’, ‘MEX’, 484),
(139, ‘FM’, ‘Micronesia, Federated States of’, ‘FSM’, 583),
(140, ‘MD’, ‘Moldova, Republic of’, ‘MDA’, 498),
(141, ‘MC’, ‘Monaco’, ‘MCO’, 492),
(142, ‘MN’, ‘Mongolia’, ‘MNG’, 496),
(143, ‘MS’, ‘Montserrat’, ‘MSR’, 500),
(144, ‘MA’, ‘Morocco’, ‘MAR’, 504),
(145, ‘MZ’, ‘Mozambique’, ‘MOZ’, 508),
(146, ‘MM’, ‘Myanmar’, ‘MMR’, 104),
(147, ‘NA’, ‘Namibia’, ‘NAM’, 516),
(148, ‘NR’, ‘Nauru’, ‘NRU’, 520),
(149, ‘NP’, ‘Nepal’, ‘NPL’, 524),
(150, ‘NL’, ‘Netherlands’, ‘NLD’, 528),
(151, ‘AN’, ‘Netherlands Antilles’, ‘ANT’, 530),
(152, ‘NC’, ‘New Caledonia’, ‘NCL’, 540),
(153, ‘NZ’, ‘New Zealand’, ‘NZL’, 554),
(154, ‘NI’, ‘Nicaragua’, ‘NIC’, 558),
(155, ‘NE’, ‘Niger’, ‘NER’, 562),
(156, ‘NG’, ‘Nigeria’, ‘NGA’, 566),
(157, ‘NU’, ‘Niue’, ‘NIU’, 570),
(158, ‘NF’, ‘Norfolk Island’, ‘NFK’, 574),
(159, ‘MP’, ‘Northern Mariana Islands’, ‘MNP’, 580),
(160, ‘NO’, ‘Norway’, ‘NOR’, 578),
(161, ‘OM’, ‘Oman’, ‘OMN’, 512),
(162, ‘PK’, ‘Pakistan’, ‘PAK’, 586),
(163, ‘PW’, ‘Palau’, ‘PLW’, 585),
(164, ‘PS’, ‘Palestinian Territory, Occupied’, NULL, NULL),
(165, ‘PA’, ‘Panama’, ‘PAN’, 591),
(166, ‘PG’, ‘Papua New Guinea’, ‘PNG’, 598),
(167, ‘PY’, ‘Paraguay’, ‘PRY’, 600),
(168, ‘PE’, ‘Peru’, ‘PER’, 604),
(169, ‘PH’, ‘Philippines’, ‘PHL’, 608),
(170, ‘PN’, ‘Pitcairn’, ‘PCN’, 612),
(171, ‘PL’, ‘Poland’, ‘POL’, 616),
(172, ‘PT’, ‘Portugal’, ‘PRT’, 620),
(173, ‘PR’, ‘Puerto Rico’, ‘PRI’, 630),
(174, ‘QA’, ‘Qatar’, ‘QAT’, 634),
(175, ‘RE’, ‘Reunion’, ‘REU’, 638),
(176, ‘RO’, ‘Romania’, ‘ROM’, 642),
(177, ‘RU’, ‘Russian Federation’, ‘RUS’, 643),
(178, ‘RW’, ‘Rwanda’, ‘RWA’, 646),
(179, ‘SH’, ‘Saint Helena’, ‘SHN’, 654),
(180, ‘KN’, ‘Saint Kitts and Nevis’, ‘KNA’, 659),
(181, ‘LC’, ‘Saint Lucia’, ‘LCA’, 662),
(182, ‘PM’, ‘Saint Pierre and Miquelon’, ‘SPM’, 666),
(183, ‘VC’, ‘Saint Vincent and the Grenadines’, ‘VCT’, 670),
(184, ‘WS’, ‘Samoa’, ‘WSM’, 882),
(185, ‘SM’, ‘San Marino’, ‘SMR’, 674),
(186, ‘ST’, ‘Sao Tome and Principe’, ‘STP’, 678),
(187, ‘SA’, ‘Saudi Arabia’, ‘SAU’, 682),
(188, ‘SN’, ‘Senegal’, ‘SEN’, 686),
(189, ‘CS’, ‘Serbia and Montenegro’, NULL, NULL),
(190, ‘SC’, ‘Seychelles’, ‘SYC’, 690),
(191, ‘SL’, ‘Sierra Leone’, ‘SLE’, 694),
(192, ‘SG’, ‘Singapore’, ‘SGP’, 702),
(193, ‘SK’, ‘Slovakia’, ‘SVK’, 703),
(194, ‘SI’, ‘Slovenia’, ‘SVN’, 705),
(195, ‘SB’, ‘Solomon Islands’, ‘SLB’, 90),
(196, ‘SO’, ‘Somalia’, ‘SOM’, 706),
(197, ‘ZA’, ‘South Africa’, ‘ZAF’, 710),
(198, ‘GS’, ‘South Georgia and the South Sandwich Islands’, NULL, NULL),
(199, ‘ES’, ‘Spain’, ‘ESP’, 724),
(200, ‘LK’, ‘Sri Lanka’, ‘LKA’, 144),
(201, ‘SD’, ‘Sudan’, ‘SDN’, 736),
(202, ‘SR’, ‘Suriname’, ‘SUR’, 740),
(203, ‘SJ’, ‘Svalbard and Jan Mayen’, ‘SJM’, 744),
(204, ‘SZ’, ‘Swaziland’, ‘SWZ’, 748),
(205, ‘SE’, ‘Sweden’, ‘SWE’, 752),
(206, ‘CH’, ‘Switzerland’, ‘CHE’, 756),
(207, ‘SY’, ‘Syrian Arab Republic’, ‘SYR’, 760),
(208, ‘TW’, ‘Taiwan, Province of China’, ‘TWN’, 158),
(209, ‘TJ’, ‘Tajikistan’, ‘TJK’, 762),
(210, ‘TZ’, ‘Tanzania, United Republic of’, ‘TZA’, 834),
(211, ‘TH’, ‘Thailand’, ‘THA’, 764),
(212, ‘TL’, ‘Timor-Leste’, NULL, NULL),
(213, ‘TG’, ‘Togo’, ‘TGO’, 768),
(214, ‘TK’, ‘Tokelau’, ‘TKL’, 772),
(215, ‘TO’, ‘Tonga’, ‘TON’, 776),
(216, ‘TT’, ‘Trinidad and Tobago’, ‘TTO’, 780),
(217, ‘TN’, ‘Tunisia’, ‘TUN’, 788),
(218, ‘TR’, ‘Turkey’, ‘TUR’, 792),
(219, ‘TM’, ‘Turkmenistan’, ‘TKM’, 795),
(220, ‘TC’, ‘Turks and Caicos Islands’, ‘TCA’, 796),
(221, ‘TV’, ‘Tuvalu’, ‘TUV’, 798),
(222, ‘UG’, ‘Uganda’, ‘UGA’, 800),
(223, ‘UA’, ‘Ukraine’, ‘UKR’, 804),
(224, ‘AE’, ‘United Arab Emirates’, ‘ARE’, 784),
(225, ‘GB’, ‘United Kingdom’, ‘GBR’, 826),
(226, ‘US’, ‘United States’, ‘USA’, 840),
(227, ‘UM’, ‘United States Minor Outlying Islands’, NULL, NULL),
(228, ‘UY’, ‘Uruguay’, ‘URY’, 858),
(229, ‘UZ’, ‘Uzbekistan’, ‘UZB’, 860),
(230, ‘VU’, ‘Vanuatu’, ‘VUT’, 548),
(231, ‘VE’, ‘Venezuela’, ‘VEN’, 862),
(232, ‘VN’, ‘Viet Nam’, ‘VNM’, 704),
(233, ‘VG’, ‘Virgin Islands, British’, ‘VGB’, 92),
(234, ‘VI’, ‘Virgin Islands, U.s.’, ‘VIR’, 850),
(235, ‘WF’, ‘Wallis and Futuna’, ‘WLF’, 876),
(236, ‘EH’, ‘Western Sahara’, ‘ESH’, 732),
(237, ‘YE’, ‘Yemen’, ‘YEM’, 887),
(238, ‘ZM’, ‘Zambia’, ‘ZMB’, 894),
(239, ‘ZW’, ‘Zimbabwe’, ‘ZWE’, 716);
— ——————————————————–
—
— Table structure for table `fa_user`
—
CREATE TABLE IF NOT EXISTS `fa_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(45) NOT NULL,
`country_id` int(11) DEFAULT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(120) NOT NULL,
`role` varchar(50) NOT NULL DEFAULT ‘user’,
`banned` tinyint(1) NOT NULL DEFAULT ‘0’,
`forgotten_password_code` varchar(50) DEFAULT NULL,
`last_visit` datetime DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`modified` timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
PRIMARY KEY (`id`),
KEY `user_FI_1` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
—
— Dumping data for table `fa_user`
—
INSERT INTO `fa_user` (`id`, `user_name`, `country_id`, `password`, `email`, `role`, `banned`, `forgotten_password_code`, `last_visit`, `created`, `modified`) VALUES
(1, ‘admin’, 0, ‘8709d7dc8f2ba1f9bd2b7140ff7078c2’, ‘root@localhost.com’, ‘superadmin’, 0, NULL, ‘2013-11-26 23:03:42’, ‘2013-11-26 23:03:42’, ‘0000-00-00 00:00:00’);
— ——————————————————–
—
— Table structure for table `fa_user_profile`
—
CREATE TABLE IF NOT EXISTS `fa_user_profile` (
`id` int(11) NOT NULL,
`field_1` varchar(50) DEFAULT NULL,
`field_2` varchar(50) DEFAULT NULL,
`call_me_nicely` varchar(3) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
—
— Dumping data for table `fa_user_profile`
—
INSERT INTO `fa_user_profile` (`id`, `field_1`, `field_2`, `call_me_nicely`) VALUES
(1, ‘Admin’, ‘Mr. Admin’, ‘102’);
— ——————————————————–
—
— Table structure for table `fa_user_temp`
—
CREATE TABLE IF NOT EXISTS `fa_user_temp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(45) NOT NULL,
`country_id` int(11) DEFAULT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(120) NOT NULL,
`activation_code` varchar(50) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `user_FI_1` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `invoice`
—
CREATE TABLE IF NOT EXISTS `invoice` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`used` int(255) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`date` date NOT NULL,
`current_total` decimal(10,4) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `invoice_detail`
—
CREATE TABLE IF NOT EXISTS `invoice_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`start` datetime NOT NULL,
`stop` datetime NOT NULL,
`used` int(11) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`total` decimal(10,4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `nas`
—
CREATE TABLE IF NOT EXISTS `nas` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`nasname` varchar(128) NOT NULL,
`shortname` varchar(32) DEFAULT NULL,
`type` varchar(30) DEFAULT ‘other’,
`ports` int(5) DEFAULT NULL,
`secret` varchar(60) NOT NULL DEFAULT ‘secret’,
`community` varchar(50) DEFAULT NULL,
`description` varchar(200) DEFAULT ‘RADIUS Client’,
PRIMARY KEY (`id`),
KEY `nasname` (`nasname`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Table structure for table `postpaid_account`
—
CREATE TABLE IF NOT EXISTS `postpaid_account` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`realname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`bill_by` varchar(255) NOT NULL,
`created_by` varchar(255) NOT NULL,
`IdleTimeout` int(10) NOT NULL,
`valid_until` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
— ——————————————————–
—
— Stand-in structure for view `postpaid_account_bill`
—
CREATE TABLE IF NOT EXISTS `postpaid_account_bill` (
`realname` varchar(255)
,`username` varchar(255)
,`password` varchar(255)
,`start` datetime
,`stop` datetime
,`time_used` decimal(15,4)
,`packet_used` decimal(24,4)
,`bill_by` varchar(255)
,`time_price` double
,`packet_price` double
);