feat(payment): complete creator income center
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
450b9f44b9
commit
9e6ae32fc1
16 files changed
+550
-134
No files matched your search
@@ -13,7 +13,7 @@ class DBMigrator {
|
||||
use DBMigratorIdentity;
|
||||
|
||||
/** Current schema version; changing it re-runs dbDelta. */
|
||||
const SCHEMA_VERSION = '1.19.0';
|
||||
const SCHEMA_VERSION = '1.20.0';
|
||||
|
||||
const OPT_KEY = 'aksrt_db_schema_version';
|
||||
|
||||
|
||||
@@ -201,8 +201,12 @@ trait DBMigratorPart2 {
|
||||
amount DECIMAL(18,2) NOT NULL DEFAULT 0,
|
||||
type VARCHAR(32) NOT NULL DEFAULT 'order',
|
||||
status VARCHAR(20) NOT NULL DEFAULT 'pending',
|
||||
reversal_amount DECIMAL(18,2) NOT NULL DEFAULT 0,
|
||||
error_message TEXT DEFAULT NULL,
|
||||
audit_json LONGTEXT DEFAULT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
settled_at DATETIME DEFAULT NULL,
|
||||
reversed_at DATETIME DEFAULT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uniq_creator_order (author_id, order_number),
|
||||
KEY idx_author (author_id),
|
||||
|
||||
Reference in new issue
Block a user