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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$1rBlqAT9UEoer/LjfeSD7KgwiSBW1OmWM3NxqwYLehF7XT.42DNpL','admin','ak_741a37437dadc261','2023-04-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$LND5WUrZ3rhIDmpS/27l6Q87EWD3qlBux8VS1d7jHo7hiVhpm81Fn','admin','ak_e6b9d51d817861e7','2023-05-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$l9sq0vy/M7Jf8YnXsHtQgB4VVSCynQ2bk4p5BKDJpLLC5Oz00blKU','admin','ak_5eea081112060e33','2023-12-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3L4qdc/.n64AtPhRxeszB7LS0E.mNfRbR64hq.Ptrf/WDxQwHpVM9','admin','ak_17686e059e92dd53','2023-05-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Yzz279ObNhBoqzIQ1KZgG8u5vrqX3N0vp.9Rs9SkWNbJ11NCCtX4a','user','ak_120426865a4dec6f','2023-08-24 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$w.aIIdYpdSCd0ulURpjY/RbOMEHdaswXaGaJAoaXy5XaltQSx/RVl','admin','ak_e17b94bdec99da8c','2023-04-08 10:05: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=26148;

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

--
-- Dumping data for table `audit_log`
--


