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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$iue7ZOuUwhzj1DOeE3qxC1CfcxhNjbNkHMr1aT5YHEFM4WbaaSBV5','admin','ak_142f42beee26bc3f','2023-09-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$9PEK.22VKhiRNW8SoMkRlI29Ms901wyImloJevqLhC6jUf.G.8B0.','user','ak_52f99863d68585ac','2023-03-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$D6lemaIHbu8NcWLROffCI4sLdzvJ3I26Rws2mLETIAjA85W7HBkO5','admin','ak_d817152ac0d03e03','2023-07-10 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$LUo6SKdzF63FLO3Okv.VCpeI5/axOKkBULloWI6doEgpAfF92us/C','user','ak_c652a152cc9e5e4f','2023-08-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$ujYYuy7RP3mYN3xsi.IdqNkmiVjihTDVIIwAGhV9t3mo8bmauv/nj','user','ak_d696be7f956bd613','2023-03-27 10:00:00',NULL);

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

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


