-- Host: db-master-0.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=23407;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$2BWVJuWGQScS0j5OgIoinkUmUhs4pK2ZKnDv8tjmoYOYCjRyskJBS','user','ak_306cd01b3144fc86','2023-03-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$enFCzcLxJGUnXE7VNeC4XjQSqwxuD4UFAPOh4LqLbDbZNc3KyVf4S','user','ak_65a2f76a78c04923','2023-09-03 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$M4teakiNyTOYU1ur6dbo7dM9lfXnRWJqHopeIwg.Av/54WKCNPAvb','user','ak_26df047fba3fe413','2023-09-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Mbu25hbhMzv1EnyHXbidYBZDt2WhyWPzzdYw4HzRWpyz6ahM7cRKP','admin','ak_e08d1bbdb9ad001b','2023-03-11 10:19: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=18611;

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

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


