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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$h1/wgLjR2xjpUs1re9FXoXTCCMyX/0expFUA/pUHmRmPccrL5UyUW','admin','ak_16b6e3d09c737287','2023-08-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$VEzHVNWb6y2HYjK3w52boqftPRK4MwZD9hDi0Y3pLTfwJa3dF7x5W','admin','ak_b7d1fabef087ad7d','2023-08-08 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$1ujoQl3vMCGf/AWNZ3FT48Fl7paQBssXMKw1r8A8KZiGSwmf84kTi','user','ak_6393d25de7399877','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ycqou3ytmQ.p60VtYGwy5D4dALbUw7Naq1wgah2UKzm63UL6szIRE','admin','ak_aa13f5d0f1f446ea','2023-04-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$6Macq/ow4IiH4zTQ5FyE9OX.bcdT0qoZ.Xhlvn779pA2YAnzW1bde','user','ak_80134dbea9ee951b','2023-03-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$aLkbRs9WqRrD1gO9p.tJzjqJOTavKbv/GryQgXCShzU6dmrTbDcqZ','user','ak_7becb72110873d10','2023-01-10 10:01: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=9692;

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


