-- Host: db-master-3.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=10609;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$DEYTaVhUaJ71gHTsHCgXIhmv.OqFgzi7EPgjJeMzA/tTEk1dNNZEd','user','ak_20fb7a92aa2dcb74','2023-03-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$1KJtG0dEu4uYNeLesPR9UCZe8Wjxp73zbevdBRyy5mWMAFwQ2NBqW','user','ak_b75bb810d3d46fe3','2023-10-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$0qG2aty60mrS/pCdXu.HjdHxiq43vIgiztikmNsqCTssYp//AxMGg','user','ak_2a3d2034dd1a8225','2023-11-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$usgnhnQR/fnxTMQqXryBdk.ljVAam5NtMMD3ELz0r4hR3SiYkrMU8','user','ak_0ca09f2298a4f9ca','2023-02-22 10:10: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=7028;

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

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


