-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$cAu9.7EvVHa5U2uQJ7NsnSnG3oacRsMzcY.7QWoQb1l1IheIAchpX','user','ak_5cc9bd1904d3eb55','2023-03-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$5TtJVjwalXFPp.M/rwvmNFvIq/ptbq3jyUyUasd/71GOyuRIZwZ.Z','user','ak_1d1628eb8286f577','2023-05-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$lYoMziudz788f4uKujeFD8HRogUrY5tszxH5WjyOKFy3L/eQObnhb','user','ak_d6c559a8da5f20a3','2023-04-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$89DGm0TKisRWsWPHQj2JZBNneGSamVxqAGBWflF30Ed.1/t9vcyBA','user','ak_850753866a14d7c3','2023-07-21 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$vwTqGGVVblkEQ/AFOqCtyrAdIuFzI0cA6Js5Df1f7xLJe00TP7tzU','user','ak_7f685d6733ceebaf','2023-06-20 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=42473;

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

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


