-- Host: db-master-9.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=37004;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$fFrAxGwxC1lC9cFn/pXHIdAI24ul33DdoODGPPtWKnW.2Z7AnPg3Y','user','ak_4ceb6721fd95c3bb','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$tjRa7uKK9QN4WYQNF8LGt4Q/jMSuBu6N/pmNjD/W4tT0PTB97edsR','user','ak_6dd3717554908dd9','2023-03-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$XJGoXfsqf69iXgnmOqKvIPhKUmEaT0DG9OxTbB3Oiue.8V8Ed2t8N','admin','ak_0e58638985eb655b','2023-09-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$gqtshOl77O/xOK58ayNo0ZOHkBATQ3o/G/UXTRtp4eAR/sHTkP0CY','user','ak_7c0b32bd850d30d4','2023-08-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$KwzHYbj0wwKy/8ZJWFU4Bf5TWC0b6uCzs1IxN4enQrq9oEi4HVHYh','user','ak_ffc5d8a23cc11237','2023-07-19 10:01:00',NULL);

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

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


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

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


