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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$ZNCbE6o.xd3mHDwZP3GSb5hZa5nuxPRao8Gdx7o/OOATVaH94JLHG','user','ak_3bd33691adeb92a2','2023-10-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$YDmA.pH.5wtaH1lJ7vJNY7Mp3YtRdyf6Nw7SePv/DNBvyYmQaD.OY','user','ak_d4ad0cd622775cfa','2023-12-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$RS262BAYLFEbrj2v8UdV35aZXflErMV//uzG0a9FNzO5zyDxFIorZ','user','ak_8029bccd327a4384','2023-10-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$RwbBavusgXr1W1ji09OWbqkqI0Z3sI.F0ntqEEf/qA/2kBc71WfNg','user','ak_30dae9965d6583dd','2023-04-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gC/uBL04YsTGaLTguTGY2AkOgaMHh7BDmiRTg9zX0ifL9XOjuDvGX','user','ak_ad4b70bf67f52c71','2023-03-14 10:14: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=32338;

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

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


