-- Host: db-master-6.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$z4WiPg05b9ABqRh2zTwkjLr3LPboOhOLQhu9NY9mnbivu5S5LGDBB','admin','ak_337c188272897c68','2023-12-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$r6iatroWwlWBcv./qoA2Bqcep2Sho.9aFRMbpq0p0XS1boI4jsg7m','admin','ak_b82c1f947fa96737','2023-02-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$HV.lsaSWjXeDn5ioWHEpr/qW/3v2rP8s6jLNCcNR3.8CSQm6KWAki','admin','ak_bdd1871798d239f1','2023-04-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ONTxDe8sQsJkyH1l/SSQOUWJ6LD3Dnd3JAOiKYGjSHr0LaYTWKXVD','user','ak_f7d90c924b20c624','2023-08-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$O.OQ4EG/QWfaqpL7PkW/Vqia8G0Nca7HTwI2e3hn2C9048k2yJllu','user','ak_ffe36c8e03e9acfa','2023-03-11 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$8xlumvPgRNFrHjj.5ngqVBh8J/G/45PqtjsNbSr1IhHjI1FAwwdhL','admin','ak_f9190b9dd9a7d976','2023-04-05 10:19: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=24942;

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

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


