-- Host: db-master-3.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$XTzcAQsJtwl59izY5NlwL6wypoSVkeJaCtTFbdVGHgWeUeYjRNaCj','admin','ak_e7023306ef63859c','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$7CW7wXVyXw.ga9i1Z4S5BV7qocOqUvKvt3AjGLH8TYwL0jigoAAeX','admin','ak_75fd6160ae86e705','2023-07-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$EMSaFMYhqLDm4mRUewUZE6DZv1bEoVDa973lQyETcV0XgMG/QWNjb','user','ak_712ccf980887d76a','2023-04-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$rYSRcLmXmKC6.EG0eW14ri20iphkGMzF1M/pEBU.Jewu/zeBxgp/I','user','ak_fe91d7ab0ba38762','2023-12-19 10:03:00',NULL);

