-- Host: db-master-2.internal    Database: production_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=19394;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$IxiylRGkmCUa5dFlFxwvCjCvVFUnfyntl9B/vl58Iz5ESSBK7DebC','user','ak_36cd7a48e554aa2d','2023-12-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$akLtoKt7Fu22FGgh5E6yv2saGnUIpVO0hu95QvQM/EfGPKuozUxNM','user','ak_e7faabfc43d66602','2023-09-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$fnASEOw/gHMfaI95zH4hth/tbmCyHO8MKTU89HXcVN8hqie2CNTrk','admin','ak_e5593ff0eeab35eb','2023-06-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$kemZK5qraicy.KAS1ImJhhalHD2cXLUPe4mWXyn7z8CnWuQrH.eTN','user','ak_4be01298670bc321','2023-07-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$HMO6koPNsCHrKmGOI810Rs5jA7HIWi7zgpyEq6wMOUSm89bT2isat','admin','ak_436683a936f2556e','2023-04-18 10:10: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=47935;

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


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

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


