-- Host: db-master-8.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=27096;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$HEmVK6V4ZATwWuixo6sl55ZBmDvBIUII249YSQpn.4DjjbXEB/hk2','user','ak_d2539fe7fbb56f7c','2023-09-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$D5DofKZ36/jX169aEmxAtGks3QdwkVHTyLPhkteQDt1AeBuyXxSFx','user','ak_1523b93310e74a06','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$XWrcOX5ws354FGrLVj9BvVHZoO4ZID8X4EVNxvWD1LgOm/Oa.PO3m','admin','ak_1ad0040ad743a93e','2023-07-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$KWMhowyLwfgMILzLc4HhMLOXf4TCkb7V1aQASb7OIIT.a1AAMq4Q7','user','ak_9773132a7f69289c','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Owpdu0Ph5lax8Ct3GZl/0.m1Mkvy5eUNhWWSbYHO5f691USUFbE6F','admin','ak_2d9cd59c17d926bb','2023-03-09 10:01: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=19913;

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

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


