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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$cyaT3arB5OF90BmUQydrhFXJWYMY5itR3YJGlZKyldsRzGtqkbXA1','user','ak_5b6ccdf1ff7296c4','2023-10-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$TZKZDpU3B0AJSpxgAD5WRdpZxhSHS1RoYdPMzPclbAsbYiNB1M7TG','admin','ak_957310664b13b546','2023-08-09 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$JiowTyYWPKSHmga7oOfJ1F.DKWio2L5tVVNpvykS8.yYXhzpy4RCC','user','ak_3820502de51809ab','2023-04-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$OLeJoM8Kw9L4Hnc6OgkwPAkviBMcP/jo48awgd8RFxGOty9KTVWwN','user','ak_4ac61139fe7105bd','2023-10-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$uh8tGXfzbJOlQRXSN4mGctNdDNY2sKoJ/29xcOIs7G6W47AM.UULm','user','ak_4aa96e026a537eff','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$lwsA0tc4aMFWX2ub.BfhYzGr8gRS9sXC98jUBE3UQEj1zzhcX9FU3','admin','ak_a8f7c2219999600e','2023-07-15 10:09:00',NULL);

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

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


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

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


