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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$5MC03MARnwUQVgXVlwns5OE.FMSODHNQVUiAD50IwLb7ghbeoVekJ','user','ak_bd02fefdbda5380b','2023-03-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$S9WOrmnghQUU5owN3p.CW3.IGboe7KJoWwzpqiWcfjqaNj5QNZSJH','user','ak_7b1c5d4d5d5c21d7','2023-09-23 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$BoRREurieFVl7TjoWdRygzZExFZN5POcS2jiqtlXxF/c23uECY49o','admin','ak_0abe413a86237e9f','2023-01-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$zvNt9K1MN2c7yKJnGAuGA3p4Wyh23c7iVpXhlaaU2/pvp3w90Ptk3','admin','ak_e7d03f28f367eeb6','2023-11-10 10:04:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=13321;

--
-- Dumping data for table `products`
--


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

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


