mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +01:00
4c0f15b94b
Summary: Ref T2787. Makes charges a real object, allows providers to apply them. We are now (just barely) capable of stealing users' money. Test Plan: {F179584} Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T2787 Differential Revision: https://secure.phabricator.com/D10002
16 lines
705 B
SQL
16 lines
705 B
SQL
CREATE TABLE {$NAMESPACE}_phortune.phortune_charge (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
phid VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
accountPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
authorPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
cartPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
paymentMethodPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
amountInCents INT NOT NULL,
|
|
status VARCHAR(32) NOT NULL COLLATE utf8_bin,
|
|
metadata LONGTEXT NOT NULL COLLATE utf8_bin,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_phid` (phid),
|
|
KEY `key_cart` (cartPHID),
|
|
KEY `key_account` (accountPHID)
|
|
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|