-- Host: db-master-4.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=19059;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Bnt992HzzVC5zfBBDR4xxFgDZxy1OqZyJtJCZUj2teWD/aKu5n9w2','user','ak_c1c612da9dbd1aa5','2023-01-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$aNdCrbyomw0hxQ0Rmx181lp.80Jwg7lh4z469BGDKaScyty3uO8uy','user','ak_5e1d09176d83b57b','2023-01-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$mewQlW/c4tUlDRxrxQicg0Q9RmOVNKzaLlePV0FLVjK9cfqjSoako','admin','ak_6f8c65ad4b7d1077','2023-04-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$eyGjqJEBE3.nVk4nZuBe4Gfco/w0NnqU5.EuTd/jUidv9LwbiGWRq','user','ak_38882926535c57f4','2023-05-17 10:15:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=18627;

--
-- Dumping data for table `audit_log`
--


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

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


