0
0
Files
Babyclass/app/清理历史数据脚本.sql
2020-08-04 10:09:42 +08:00

44 lines
1.1 KiB
SQL

TRUNCATE table `admin_logins`;
TRUNCATE table `admin_operation_logs`;
TRUNCATE table `jobs`;
TRUNCATE table `sms`;
TRUNCATE table `notifications`;
TRUNCATE table `followables`;
TRUNCATE table `carts`;
TRUNCATE table `payments`;
TRUNCATE table `orders`;
TRUNCATE table `order_details`;
TRUNCATE table `order_expresses`;
TRUNCATE table `order_logs`;
TRUNCATE table `order_expresses`;
TRUNCATE table `windups`;
TRUNCATE table `users`;
TRUNCATE table `user_accounts`;
TRUNCATE table `user_account_logs`;
TRUNCATE table `user_addresses`;
TRUNCATE table `user_identities`;
TRUNCATE table `user_infos`;
TRUNCATE table `user_logins`;
TRUNCATE table `user_relations`;
TRUNCATE table `vip_paments`;
TRUNCATE table `withdraws`;
TRUNCATE table `identity_logs`;
TRUNCATE table `profit_logs`;
TRUNCATE table `bonus_logs`;
TRUNCATE `activity_logs`;
TRUNCATE `coupon_logs`;
TRUNCATE `coupon_user_logs`;
TRUNCATE `coupon_uses`;
TRUNCATE `failed_jobs`;
TRUNCATE `lottery_logs`;
TRUNCATE `order_refunds`;
TRUNCATE `order_refund_expresses`;
TRUNCATE `order_refund_items`;
TRUNCATE `seller_lesson_logs`;