-- Host: db-master-9.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=21945;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$5.zMl7vBiWefE3JJoswKmHHY7mgLi8DjgwpL1vjNQkTwdmAvyiH5c','user','ak_8a553a8ca3b487ce','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$sZe/XpwxKiqcRlxn763stBXoc/dDGnGHNhrnd7pUNRN9DodGV8VWP','user','ak_16f75a601a543ac6','2023-01-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$GRrIZgJzbgiqM3Uv.5EAxCbw8cszhyfclyakfnmNySovJmFMn0NFH','user','ak_03edc6ed60610522','2023-03-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$7LYlApaUxavzj.UymPB4f63EO6MB3c/gYLarLgPBpT6zAazhGbkLa','user','ak_5055c712e56bde7c','2023-12-20 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$s8K6nPUSDPvJ18681rXs0typb9LmhOu.LKSlZsNeeY5cR.T.4k7VX','user','ak_abafff78c8a3bed5','2023-02-28 10:18: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=8984;

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


