mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-08-29 14:02:08 -04:00
27 lines
1.0 KiB
SQL
27 lines
1.0 KiB
SQL
-- migrate:up
|
|
-- migrations/02008_create_user_reset_subscribe_log.up.sql
|
|
-- Purpose: Create user_reset_subscribe_log table
|
|
-- Author: PPanel Team, 2025-04-22
|
|
|
|
CREATE TABLE IF NOT EXISTS `user_reset_subscribe_log`
|
|
(
|
|
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
`user_id` BIGINT NOT NULL COMMENT 'User ID',
|
|
`type` TINYINT(1) NOT NULL COMMENT 'Type: 1: Auto 2: Advance 3: Paid',
|
|
`order_no` VARCHAR(255) DEFAULT NULL COMMENT 'Order No.',
|
|
`user_subscribe_id` BIGINT NOT NULL COMMENT 'User Subscribe ID',
|
|
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation Time',
|
|
INDEX `idx_user_id` (`user_id`),
|
|
INDEX `idx_user_subscribe_id` (`user_subscribe_id`)
|
|
) ENGINE = InnoDB
|
|
DEFAULT CHARSET = utf8mb4
|
|
COLLATE = utf8mb4_general_ci;
|
|
|
|
-- migrate:down
|
|
-- migrations/02008_create_user_reset_subscribe_log.down.sql
|
|
-- Purpose: Drop user_reset_subscribe_log table
|
|
-- Author: PPanel Team, 2025-04-22
|
|
|
|
DROP TABLE IF EXISTS `user_reset_subscribe_log`;
|
|
|