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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ny1krtAza3LZFkP6Ug1kMqKVSNTrJpsj1eFSd9UmbNQImrX09rqtq','user','ak_21ed1e22c5892b22','2023-04-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$a4oWGo/3MZSGAl0aRLvLbgriAtsa.PorhTAdshSDzk2fQxjT98g9U','user','ak_7de6fd82fd8122ae','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$cjOZajLA25fkz3JLpjGopKhFa4BMEzcB46eAU/pDXZdxX4KRC6/Zy','admin','ak_da9082dd7397cc0f','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$fl39gZVq.np/ZeohQsiwVdAliA1kRqA.pW.vbYPjjEfzt7hA1S3Ex','user','ak_61be39f3e28cfe81','2023-02-18 10:23: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=3704;

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

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


