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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$8kRHmYAFyOLJM/UCcpABQDYLWsF1WpwfrSTKzSJ0Y6Vl/A6CJXA5X','user','ak_8834e52d4f436597','2023-12-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$LWZ2UzW1wnMAe49eKOVxjsx/zslI1tsPOx7cHCry0dTUyuI7mjdJg','user','ak_68d88eceeb69b2e5','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$bGzRMkxgjyOAnp3DEcoUzHjiC9mkaQ8ldOqS5kCfl23UaT/HhT4Xx','admin','ak_d56b839b6227f1b8','2023-06-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$u9J9gbNFWeoRQ1yF44/3hfP2O5p5ilI9ttDfNq4TxpNC30rgxdtCQ','admin','ak_c2890b4c70aaef0b','2023-04-04 10:07: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=31380;

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


