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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$eote0VnXpTlt42JojgYUXRICJxoHkoyhrarEFYdbnrWf/9sywPauc','user','ak_bda09e738afc283f','2023-06-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$4.cuvhfjpAPbi8Y4bdoxpvprs.k.4yxoDG05tu1DvYsk8YDhNVyzw','admin','ak_75eb587e3408176b','2023-10-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$5TTPH.RwkNhbW1GfrxLfEq6aAeQr8MfFGcylda0nhh2LdBqAqmGsh','admin','ak_c92c5d8e195147d6','2023-09-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Hfukvydl93nE.rDbBXqLHjnILFrUQAaIBDzKMgNQmI8sXk3E6V5Vh','admin','ak_a39878a632777653','2023-12-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$xk5eLHefekfp593QYaku6tt3T9MMBf.tQ8DQp.p3F6J5uuiOrGTgy','admin','ak_4b3953f6e5ca139c','2023-06-26 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$ACJulU2inKNN.wojqxTiXSNpePDjRN4b4cTVjAErp7E3/W4NULpvw','admin','ak_ab03ade072cd5d85','2023-12-06 10:03: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=4308;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=19071;

--
-- Dumping data for table `sessions`
--


