-- Host: db-master-9.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$g2y3F12VgOsmNJczTNqOAEsozfAvG0L4CMv/qvVOLCIY1Ca5q01SM','admin','ak_32795ba32f25cc33','2023-06-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Bs762pFUyfSLvr3VjS9sgkzDwff78QGeTc/BuNd39AHvs.BpjIt8V','user','ak_98f6b001f5a8d05d','2023-05-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$VT.J/3ynlptU8UW/94KGKN/SAfasGiLX8YoPOw8QXY4dXG2fn38Jo','user','ak_303f746009c82eff','2023-12-11 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$ELiiyXuHtQaQJlNy3QpVj.BpZHKU6/UEw2dxr6.pj55nddDTzY1Vy','user','ak_2443c65d76de6292','2023-12-11 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$cGIvYrtB5vi56pJRVgj8gV9Rp7lxBxRrphrZZ/vA5en4wGZBUQjTv','user','ak_9ee516bb9416b217','2023-10-11 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$fwO0nNx6lMfkiF3nIi5bo7pcYbuFWda..9F1HHFYnzFjyHY7kbpAS','user','ak_fc98e89f6e75dab8','2023-07-11 10:04:00',NULL);

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

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


