Merge pull request #19525 from eileenmcnaughton/member_soft
[civicrm-core.git] / xml / schema / Financial / PaymentToken.xml
CommitLineData
d31fb4e3 1<?xml version="1.0" encoding="iso-8859-1" ?>
ccbfa640 2
d31fb4e3
CW
3<table>
4 <base>CRM/Financial</base>
5 <class>PaymentToken</class>
6 <name>civicrm_payment_token</name>
7 <comment>Payment Token</comment>
8 <add>4.6</add>
9 <component>CiviContribute</component>
10 <field>
78c35cc9
RT
11 <name>id</name>
12 <uniqueName>payment_token_id</uniqueName>
13 <title>Payment Token ID</title>
d31fb4e3
CW
14 <type>int unsigned</type>
15 <required>true</required>
16 <comment>Payment Token ID</comment>
17 <add>4.6</add>
0481e12c
A
18 <html>
19 <type>Number</type>
20 </html>
d31fb4e3
CW
21 </field>
22 <primaryKey>
23 <name>id</name>
24 <autoincrement>true</autoincrement>
25 </primaryKey>
26 <field>
27 <name>contact_id</name>
28 <title>Contact ID</title>
29 <type>int unsigned</type>
30 <required>true</required>
31 <comment>FK to Contact ID for the owner of the token</comment>
57e94608
A
32 <html>
33 <label>Contact</label>
34 </html>
d31fb4e3
CW
35 <add>4.6</add>
36 </field>
37 <foreignKey>
38 <name>contact_id</name>
39 <table>civicrm_contact</table>
40 <key>id</key>
41 <add>4.6</add>
42 <onDelete>CASCADE</onDelete>
43 </foreignKey>
44 <field>
45 <name>payment_processor_id</name>
46 <title>Payment Processor ID</title>
47 <type>int unsigned</type>
48 <required>true</required>
49 <comment></comment>
57e94608
A
50 <html>
51 <label>Payment Processor</label>
52 </html>
d31fb4e3
CW
53 <add>4.6</add>
54 </field>
55 <foreignKey>
56 <name>payment_processor_id</name>
57 <table>civicrm_payment_processor</table>
58 <key>id</key>
59 <add>4.6</add>
60 <onDelete>RESTRICT</onDelete>
61 </foreignKey>
62 <field>
63 <name>token</name>
78c35cc9
RT
64 <type>varchar</type>
65 <title>Token</title>
d31fb4e3
CW
66 <length>255</length>
67 <required>true</required>
68 <comment>Externally provided token string</comment>
69 <add>4.6</add>
70 </field>
71 <field>
78c35cc9
RT
72 <name>created_date</name>
73 <title>Created Date</title>
d31fb4e3 74 <type>timestamp</type>
25567300
EM
75 <comment>Date created</comment>
76 <default>CURRENT_TIMESTAMP</default>
d31fb4e3
CW
77 <add>4.6</add>
78 </field>
79 <field>
78c35cc9
RT
80 <name>created_id</name>
81 <title>Created ID</title>
d31fb4e3
CW
82 <type>int unsigned</type>
83 <comment>Contact ID of token creator</comment>
57e94608
A
84 <html>
85 <label>Created</label>
86 </html>
d31fb4e3
CW
87 <add>4.6</add>
88 </field>
51c381a3
RT
89 <foreignKey>
90 <name>created_id</name>
91 <table>civicrm_contact</table>
92 <key>id</key>
78c35cc9 93 <add>4.6</add>
51c381a3
RT
94 <onDelete>SET NULL</onDelete>
95 </foreignKey>
d31fb4e3 96 <field>
78c35cc9
RT
97 <name>expiry_date</name>
98 <title>Expiry Date</title>
d31fb4e3
CW
99 <type>datetime</type>
100 <comment>Date this token expires</comment>
101 <add>4.6</add>
102 </field>
103 <field>
78c35cc9
RT
104 <name>email</name>
105 <title>Email</title>
d31fb4e3
CW
106 <length>255</length>
107 <type>varchar</type>
108 <comment>Email at the time of token creation. Useful for fraud forensics</comment>
109 <add>4.6</add>
110 </field>
111 <field>
78c35cc9
RT
112 <name>billing_first_name</name>
113 <title>Billing First Name</title>
d31fb4e3
CW
114 <type>varchar</type>
115 <length>255</length>
116 <comment>Billing first name at the time of token creation. Useful for fraud forensics</comment>
117 <add>4.6</add>
118 </field>
119 <field>
120 <name>billing_middle_name</name>
78c35cc9 121 <title>Billing Middle Name</title>
d31fb4e3
CW
122 <type>varchar</type>
123 <length>255</length>
124 <comment>Billing middle name at the time of token creation. Useful for fraud forensics</comment>
125 <add>4.6</add>
126 </field>
127 <field>
128 <name>billing_last_name</name>
78c35cc9 129 <title>Billing Last Name</title>
d31fb4e3
CW
130 <type>varchar</type>
131 <length>255</length>
132 <comment>Billing last name at the time of token creation. Useful for fraud forensics</comment>
133 <add>4.6</add>
134 </field>
135 <field>
78c35cc9
RT
136 <name>masked_account_number</name>
137 <title>Masked Account Number</title>
d31fb4e3
CW
138 <type>varchar</type>
139 <length>255</length>
140 <comment>Holds the part of the card number or account details that may be retained or displayed</comment>
141 <add>4.6</add>
142 </field>
143 <field>
78c35cc9
RT
144 <name>ip_address</name>
145 <title>IP Address</title>
d31fb4e3
CW
146 <type>varchar</type>
147 <length>255</length>
148 <comment>IP used when creating the token. Useful for fraud forensics</comment>
149 <add>4.6</add>
150 </field>
151</table>