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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$eqk0IyFFSWHei7iYq2xfEo7sdrkQ2vlfO/R0Ozlhs9YhgP2Guhu/X','user','ak_40a3411886cd18bb','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$A3pmAanqs0W.gyCCbbHsexSrXgZUZ3VaPj0SvYxgsjWhneuVDsMT6','admin','ak_911106312b484c2f','2023-02-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$oW1uADr2LRPNAgxbiOF5aodZYc5Mv2wAyb0JqJb8XY2hiG1lW5YSe','user','ak_183c8176a55e7e55','2023-01-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$X43Nh/xmWwXBre2kPyS6unkjH/fH4DqG/GhUHVsB9igvVscpw0Wt7','user','ak_68259981f77c6643','2023-05-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$6KmAoEmK0EgyTGP0UmYF22/GjG8pQTFp3BzpkFZ7XgmihiLjwpuXw','user','ak_73ce555f88d343ca','2023-05-26 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$LYNxQqXq6mMdppJSlJUfeYsy/4pHMSHlj5VRQqDziHfBlFGw1CtGW','user','ak_7ed773d48bf4d8ba','2023-02-21 10:03: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=40601;

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

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


