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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$1z1vsIN8NB7KgOZRhhAXqV2I6eTGwswNtmuRdrY6rMX4ZhemBhlj3','admin','ak_976197861f0d5a2d','2023-10-02 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$esMB3JWot3avRguB0TdwSZCbsY/jNzfAbsk52JKdPqf4Jz5i9VdPA','user','ak_1b5d2bebd5411ccc','2023-06-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Yp21QrZPmHyxmBM9COjY1vNu1TChIm2ZpitnWxVrVzKzr/jdXEPbW','admin','ak_60cbe948c84ee79a','2023-09-05 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$GWHHgXzngMi0CYiyVxLQ6vTe4cV3YEE4i/lBebKApIDMM2JWB54fs','user','ak_225713ce93aa2b22','2023-06-03 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$U4wLPrmGjQkpVZ7z5EcBYmGGBbWQPqk1.umIxD/2xH5fydkXe3YvX','user','ak_977c46a3922b4ec4','2023-05-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$MFef6DOHC844wQP5cS0Tlrul.SAa10WDtwShPPJNyLMTaxm1ljewk','admin','ak_df8c6a53479ed665','2023-05-05 10:21: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=39459;

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


