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


--
-- 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=12687;

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


--
-- 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=4470;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$puzzidUMP.n3fzchobj0GVGSXno//mndift1LQ5CKjaYWnwXM6eGF','admin','ak_6daa8182d2a25c10','2023-06-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$o6bgAZHXsCtZbTgaIpm.waCbKBEZ9t9u/eGpE2qL8a3HsiOoKR.tR','user','ak_6e3823f557ecf0f0','2023-12-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$sDh3HTPmAfCYQawJbvYe8CWpVY.RToSxd05/igGF3Szop0MnapKWz','user','ak_d223053aa144fbba','2023-02-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$5BcnJTeZg5GH2haIGtLDk5MxtTmI3x4Fo/mhopwEBEKFF9g9vHzgg','admin','ak_4ed7dc8a7f748c4e','2023-04-13 10:20: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=31090;

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


