-- Host: db-master-7.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=36618;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$0A5JF9xp6XUNKsY.GWXdsszy9lZWdXrrTw8ZjmeQ7mKIa2wQHmBbp','admin','ak_04bcf455445828ca','2023-12-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$z.86vczC74UO3KXItwi21jxqkL0lXOVq4wxyHNGhZAa9Jw8o0kDN/','user','ak_548d8d383830b6e7','2023-09-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$tbyHIQO.sOlIwn6vAOAZury8bB7EeGm4bOpYYIqQhDNtBPrwh4oN3','user','ak_8c63e5c27ce86c6e','2023-04-02 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$IpQ.2eDT5sB4FPQ0JoNV5WwyQdqTxEb8P4A..jhm.79HJ/ekggHAF','admin','ak_e496ea3bd480d6a3','2023-03-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$91sf650dzPmrIy8to8FArXgUPmTap7a.48oMMxNjvSOrPJ2YHqi9x','admin','ak_76f0dfaa8094b9e8','2023-04-17 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=49135;

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


