-- Host: db-master-1.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=27708;

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$15IDu8l6pStA2GZA/scuszi5NAWO6qxRMX3wq9sMZOw0NEOg//feJ','admin','ak_e826a508e64bdba5','2023-11-19 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$9I4IiiCiSOSN6FcLJajk/GQI.F3OemFhuEKGa431It3qlf4c111jU','user','ak_03941243322a4ddc','2023-11-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$OV8dcEWJtPi.j9kRQfxymaCqtO/kcBq2l1OG2SBj3yBqVajly4T0o','admin','ak_4a0e200f09879aba','2023-01-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$vLxFDNsqEXHpiVGVDXdDVjxP.ntiuDJUUJ1IsmO6USbXdAyWVd.Ye','user','ak_5b45463e568711a0','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$v/SugZpyuNZ90ZkH07CsXVZ2rZVDXzUSs5FbKzosvTK8DgDszx.El','admin','ak_4375507be29e63a0','2023-07-14 10:07:00',NULL);

