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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=2010;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$rJ1KJPvYgGVPuGbH4.YlwoMlYtWCq46GuFi1w6lV/6nF0fRZ8p.Aw','user','ak_f24334765a0c10ad','2023-11-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$1oDSOCmYtyoQT0IcEnPJheSPLXsDb.uvfxoCQj1aJ5jsMCqBZHQLZ','admin','ak_96b5a854d4e35e7b','2023-04-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$FrAYv98cB4I9igbI4k/yDuoPSafKarXpyjyDmaoRxd04Pr/DvKcdq','user','ak_6c9bfb053b369444','2023-02-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$UnDIXxwU6LDd.fM.Py18.qYxqJfl4Z/.g/FYsk4a88uV2LaO6CiwX','user','ak_1bf6190256c851d1','2023-02-13 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$KHBVa8hOk3SyCxBXqttrbGLT2FqlUFNiMe0aaajBrcI/f/M5P6eae','admin','ak_9cd6758f92bfde94','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$VcFxxvkMuA.PVE0guoAbS0aTg51Cc1lm7h2D5YJKfM3zAxHm3iN8I','user','ak_5c87cdef61db742b','2023-03-18 10:21: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=46154;

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


