1 Star 0 Fork 0

YC18210427950 / laravel_urlhum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
urlhum.sql 11.89 KB
一键复制 编辑 原始数据 按行查看 历史
17734027950 提交于 2020-08-06 15:56 . 20200806
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50553
Source Host : localhost:3306
Source Database : urlhum
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2020-03-29 14:31:06
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `clicks`
-- ----------------------------
DROP TABLE IF EXISTS `clicks`;
CREATE TABLE `clicks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`short_url` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`click` tinyint(4) DEFAULT '0',
`real_click` tinyint(4) DEFAULT '0',
`country` char(10) COLLATE utf8mb4_unicode_ci DEFAULT '0',
`country_full` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '0',
`referer` varchar(300) COLLATE utf8mb4_unicode_ci DEFAULT '0',
`ip_address` varchar(300) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`ip_hashed` tinyint(4) DEFAULT '0',
`ip_anonymized` tinyint(4) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of clicks
-- ----------------------------
INSERT INTO `clicks` VALUES ('1', 'XdDX', '0', '1', 'N/A', 'Unknown', null, '4b84b15bff6ee5796152495a230e45e3d7e947d9', '1', '1', '2019-12-27 10:56:37', '2019-12-27 10:56:37');
INSERT INTO `clicks` VALUES ('2', 'XvwG', '0', '1', 'N/A', 'Unknown', null, '4b84b15bff6ee5796152495a230e45e3d7e947d9', '1', '1', '2019-12-27 10:56:58', '2019-12-27 10:56:58');
INSERT INTO `clicks` VALUES ('3', 'XvwG', '1', '0', 'N/A', 'Unknown', null, '4b84b15bff6ee5796152495a230e45e3d7e947d9', '1', '1', '2019-12-27 10:57:07', '2019-12-27 10:57:07');
-- ----------------------------
-- Table structure for `deleted_urls`
-- ----------------------------
DROP TABLE IF EXISTS `deleted_urls`;
CREATE TABLE `deleted_urls` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of deleted_urls
-- ----------------------------
-- ----------------------------
-- Table structure for `migrations`
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES ('1', '2014_10_12_000000_create_users_table', '1');
INSERT INTO `migrations` VALUES ('2', '2014_10_12_100000_create_password_resets_table', '1');
INSERT INTO `migrations` VALUES ('3', '2016_06_01_000001_create_oauth_auth_codes_table', '1');
INSERT INTO `migrations` VALUES ('4', '2016_06_01_000002_create_oauth_access_tokens_table', '1');
INSERT INTO `migrations` VALUES ('5', '2016_06_01_000003_create_oauth_refresh_tokens_table', '1');
INSERT INTO `migrations` VALUES ('6', '2016_06_01_000004_create_oauth_clients_table', '1');
INSERT INTO `migrations` VALUES ('7', '2016_06_01_000005_create_oauth_personal_access_clients_table', '1');
INSERT INTO `migrations` VALUES ('8', '2019_02_18_141006_create_urls_table', '1');
INSERT INTO `migrations` VALUES ('9', '2019_04_01_194819_create_settings_table', '1');
INSERT INTO `migrations` VALUES ('10', '2019_04_18_190945_create_deleted_urls_table', '1');
INSERT INTO `migrations` VALUES ('11', '2019_04_18_194740_create_views_table', '1');
INSERT INTO `migrations` VALUES ('12', '2019_11_18_083005_rename_views_table_to_clicks', '1');
-- ----------------------------
-- Table structure for `oauth_access_tokens`
-- ----------------------------
DROP TABLE IF EXISTS `oauth_access_tokens`;
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) DEFAULT NULL,
`client_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of oauth_access_tokens
-- ----------------------------
-- ----------------------------
-- Table structure for `oauth_auth_codes`
-- ----------------------------
DROP TABLE IF EXISTS `oauth_auth_codes`;
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) NOT NULL,
`client_id` int(10) unsigned NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of oauth_auth_codes
-- ----------------------------
-- ----------------------------
-- Table structure for `oauth_clients`
-- ----------------------------
DROP TABLE IF EXISTS `oauth_clients`;
CREATE TABLE `oauth_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_clients_user_id_index` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of oauth_clients
-- ----------------------------
-- ----------------------------
-- Table structure for `oauth_personal_access_clients`
-- ----------------------------
DROP TABLE IF EXISTS `oauth_personal_access_clients`;
CREATE TABLE `oauth_personal_access_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`client_id` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_personal_access_clients_client_id_index` (`client_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of oauth_personal_access_clients
-- ----------------------------
-- ----------------------------
-- Table structure for `oauth_refresh_tokens`
-- ----------------------------
DROP TABLE IF EXISTS `oauth_refresh_tokens`;
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of oauth_refresh_tokens
-- ----------------------------
-- ----------------------------
-- Table structure for `password_resets`
-- ----------------------------
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of password_resets
-- ----------------------------
-- ----------------------------
-- Table structure for `settings`
-- ----------------------------
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` text COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `settings_key_index` (`key`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of settings
-- ----------------------------
INSERT INTO `settings` VALUES ('1', 'anonymous_urls', '1');
INSERT INTO `settings` VALUES ('2', 'registration', '1');
INSERT INTO `settings` VALUES ('3', 'private_site', '0');
INSERT INTO `settings` VALUES ('5', 'show_guests_latests_urls', '1');
INSERT INTO `settings` VALUES ('6', 'hash_ip', '1');
INSERT INTO `settings` VALUES ('7', 'anonymize_ip', '1');
INSERT INTO `settings` VALUES ('8', 'disable_referers', '1');
INSERT INTO `settings` VALUES ('9', 'reservedShortUrls', '[\"\"]');
INSERT INTO `settings` VALUES ('10', 'deleted_urls_can_be_recreated', '1');
INSERT INTO `settings` VALUES ('11', 'website_name', '短链接');
INSERT INTO `settings` VALUES ('12', 'website_image', '/images/urlhum.png');
INSERT INTO `settings` VALUES ('13', 'website_favicon', '/images/favicon.ico');
INSERT INTO `settings` VALUES ('14', 'privacy_policy', ' ');
INSERT INTO `settings` VALUES ('15', 'enable_privacy_policy', '1');
INSERT INTO `settings` VALUES ('16', 'terms_of_use', ' ');
INSERT INTO `settings` VALUES ('17', 'enable_terms_of_use', '1');
INSERT INTO `settings` VALUES ('18', 'require_user_verify', '1');
INSERT INTO `settings` VALUES ('19', 'custom_html', ' ');
-- ----------------------------
-- Table structure for `urls`
-- ----------------------------
DROP TABLE IF EXISTS `urls`;
CREATE TABLE `urls` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`long_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`short_url` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) DEFAULT NULL,
`private` tinyint(4) NOT NULL DEFAULT '0',
`hide_stats` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of urls
-- ----------------------------
INSERT INTO `urls` VALUES ('1', '2019-12-27 10:56:21', '2019-12-27 10:56:21', 'http://localhost:8000', 'XdDX', null, '0', '0');
INSERT INTO `urls` VALUES ('2', '2019-12-27 10:56:50', '2019-12-27 10:56:50', 'https://www.baidu.com', 'XvwG', null, '0', '0');
-- ----------------------------
-- Table structure for `users`
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('1', 'Admin', '18210427950@qq.com', '2019-12-27 10:54:23', '$2y$10$DcvYHZf72GRddRyNjIvrmOsF5CRWGXPLtJOe6QL2BflYFypR6GL0u', 'admin', null, '2019-12-27 10:54:24', '2019-12-30 03:21:16');
INSERT INTO `users` VALUES ('2', 'Manage', '17734027950@189.cn', null, '$2y$10$MaZ6SGrNjxfrp5kCE.9JxO80NL/UGZaEO7NsxYN/y9TE4HizxsS8C', 'user', null, '2019-12-30 03:22:39', '2019-12-30 03:22:39');
PHP
1
https://gitee.com/yc18210427950/laravel_urlhum.git
git@gitee.com:yc18210427950/laravel_urlhum.git
yc18210427950
laravel_urlhum
laravel_urlhum
master

搜索帮助