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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$fCPhGVJTxpPjfeCjT7vqu.SNzIV9ZVB2LXh1SKJQ4DM2PTF3XQ9yv','user','ak_3306da8e7b590132','2023-07-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$KUP9rb6LqOi3wWW7gSuczgPLH2hgJJmOZLLlCfOpDBwskLKq426W6','admin','ak_66342176a83a7c34','2023-01-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$b0.c8m/6sN6CyJOxbyCc4//gYa78xS7IxHwc.pv6paRBezsZp81ky','user','ak_8cc2f4fef04fb6ae','2023-03-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$.o8zKKM3FytrLIPJq.fgtQ3WKrv8oXLbmiaBKzUjVAwXO.cnR5pRa','user','ak_e14cce3a0adb8952','2023-10-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$lRcuUhTzCIhUPsJm2VFHWzn45CB1Ns49j18OUryWZVg5MafIIr2.i','user','ak_cf243d6cf6dc03d6','2023-12-23 10:21:00',NULL);

