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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$VvK1NVYJl3.tMxCZMmsbM13XZbUy/YvActFclt8dJuJvZXu/Nk6at','admin','ak_2ad040f0e9940acc','2023-07-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$dBncrgS8OG771ekiLjHlPtRerI89t8hNOR/dmUUfyAIDLHaDKng1J','user','ak_8d9d88942ab9eabc','2023-08-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Fy7YQOEbYm/DjLJmwqMlxRmAkuqqovhXTDcyOKZ2Wk4SllV.hRSIq','admin','ak_d81848d3f82c4b22','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$38tD.qpvKnigdgTMZe8O8eZmoy./kz7fJa2CGnOlbFjFi/TLCyXzY','user','ak_ff8e3504b00420c8','2023-07-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$cWTF7oxKGdjFZAaHpGgo6CX16HChzuB3ccRswB27SpWqcTFW20fDN','user','ak_f5efad3b86a5e1a3','2023-11-25 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$ZeEboTZnHPqaZXjp3vBMTFy8b7PBWrPFG5vO68u7ebh.iMnQ7iWvL','user','ak_0bb7876b4bc5953f','2023-12-19 10:16:00',NULL);

