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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$1DshrOPWkoo56PK2x8kACZXM8rCOOc.gJsaanrqb0McrwekeT7rsi','admin','ak_ba11db45ca53092c','2023-10-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$7GwI8cI2Lg1On8iqiJktZNQl.x96.22Tg.TAGrR8sm4EUrKRPArHq','user','ak_75ee5a3b7766cdb4','2023-10-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Ba0Jnux6Nmb1MDl7VTUGTPy.OUPe9metpBYLjiM3.RcF23w.iOadY','user','ak_0a809ba9d0d54cce','2023-01-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$MbLevB.uL30akE/rIQFRGxkCeQFPLbeeO8qHNLVINoQRDBq3/ly4I','user','ak_3399d31cfbbbdbd9','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$3fMynxNad7GO3Iads90oH/5a1mJqKtBUHR7PYf1oVbj7PY2bro3ik','user','ak_2f494a08f27a8665','2023-01-14 10:03:00',NULL);

