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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$JCs1WPKJN83V/.lSXRyIPl7WbTHxhqOYz5YSxyw7fMQznDjTrQ6Qt','admin','ak_050bb8533e8c56d1','2023-08-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$J6UnjEBFXD96H3w5OT0uz.ilbmOJi2DjLah8uOPcB6pro28E3PBef','admin','ak_7705d5ae52e97b04','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$D2LxyMt4Tbtpd4ZGHcrEzmX4vFlm2Ns17bGiemFaH7tQ4SmByjBvr','admin','ak_294b8c3de8396442','2023-09-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$rn3SR2StpW6azEkwoetCIPxN.bGfOnQHQHbcBQIVAai5V2d66ZWYl','user','ak_3334eaca1f5da5ac','2023-02-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$6ns8mARy9Wlz7orqvQSAQEsCCtMUNpuYCufm/EwoFrUOG6i/XwgxL','user','ak_3f6d1aa2e2d09821','2023-04-20 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=19417;

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

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


