-- Host: db-master-8.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Tvw/pPltC.BErNUDw7LzyANVuGnAhGdt2ePDgWYLLXC/2Kf.P0Bdy','user','ak_3bdfb276aa4f82f2','2023-06-04 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$hr3is2496wfmwHn2MQ0L50TizA.cuMO2.mqhrG9a70DT8lO8h4l02','user','ak_2bc38de1db38f9b9','2023-04-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$RRGsp4IBNTZ4TvyWagUtc8TXX49kUFiwMv9pMgjvnJ0y/HCSDaznj','user','ak_403ae6211a10d5c0','2023-02-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$.b6bXoR/sCWBD6pV3emUUElOhC4qIREeu1iqRLZQbOPcOQEExBC99','user','ak_7955cca1970fe073','2023-05-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$GTIKZomf.uMvHvH6uYx7/MJb6HvBPo7ik1WPCq8nYz/bGmd8/eCeg','user','ak_5f769597137b8c9e','2023-05-21 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$KEExclWqOp37dMBqRqvswEw4YLCkH4o8V0rbnKOoWBem7mjx/7Wjd','admin','ak_a80aadb45f4d0d95','2023-11-10 10:04: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=37697;

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

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


