mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 18:10:53 +01:00
7720b799e4
Summary: Ref T6881. This roughs in the major objects, support classes, and controllers. - Show subscriptions on account detail. - Browse all account subscriptions. - Link to active subsciptions from merchant detail. Test Plan: Clicked around in the UI. There's no way to create subscriptions yet, so I basically just kicked the tires on this. I probably missed a few things that I'll clean up in followups. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T6881 Differential Revision: https://secure.phabricator.com/D11482
20 lines
920 B
SQL
20 lines
920 B
SQL
CREATE TABLE {$NAMESPACE}_phortune.phortune_subscription (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
phid VARBINARY(64) NOT NULL,
|
|
accountPHID VARBINARY(64) NOT NULL,
|
|
merchantPHID VARBINARY(64) NOT NULL,
|
|
triggerPHID VARBINARY(64) NOT NULL,
|
|
authorPHID VARBINARY(64) NOT NULL,
|
|
subscriptionClassKey BINARY(12) NOT NULL,
|
|
subscriptionClass VARCHAR(128) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
subscriptionRefKey BINARY(12) NOT NULL,
|
|
subscriptionRef VARCHAR(128) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
status VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
metadata LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_phid` (phid),
|
|
UNIQUE KEY `key_subscription` (subscriptionClassKey, subscriptionRefKey),
|
|
KEY `key_account` (accountPHID),
|
|
KEY `key_merchant` (merchantPHID)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|