-- Host: db-master-7.internal    Database: analytics


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=41582;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$RRP2BSYaL1Za0XTHRKVtTYNWDUaiPCggpXRQv9p67OPK5fWJg975m','user','ak_0811808aea7b6fd2','2023-12-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$ZK4pmul7sj01IsjboRVCiBKuQQkD9vG1zW7Ez7C7RoBPbEU8OOpNR','user','ak_1e5ee63a3bb3a20c','2023-05-25 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$3xlPjgOCAKfD4HLDW1K/JZKNLqUGF/GUE3QCQ0B58523aDsCqIPxg','admin','ak_8ee607db0acbedf3','2023-06-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$smurTXWkkoskkMyCrchrXwMH8vtmp2nm3RY/.77sqFBTs5RaKuHnk','admin','ak_519009dcb7056dff','2023-01-10 10:14:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=15123;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=46707;

--
-- Dumping data for table `products`
--


