1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <model package =" sendex" baseClass =" xPDOObject" platform =" mysql" defaultEngine =" MyISAM" phpdoc-package =" sendex"
3
- version =" 1.1" >
2
+ <model package =" sendex" baseClass =" xPDOObject" platform =" mysql" defaultEngine =" MyISAM" phpdoc-package =" sendex" version =" 1.1" >
4
3
5
- <object class =" SendexItem" table =" sendex_items" extends =" xPDOSimpleObject" >
6
- <field key =" name" dbtype =" varchar" precision =" 100" phptype =" string" null =" false" default =" " />
7
- <field key =" description" dbtype =" text" phptype =" text" null =" true" default =" " />
8
- <field key =" active" dbtype =" tinyint" precision =" 1" phptype =" boolean" null =" true" default =" 1" />
4
+ <object class =" sxNewsletter" table =" sendex_newsletters" extends =" xPDOSimpleObject" >
5
+ <field key =" name" dbtype =" varchar" precision =" 100" phptype =" string" null =" false" default =" " />
6
+ <field key =" description" dbtype =" text" phptype =" text" null =" true" default =" " />
7
+ <field key =" active" dbtype =" tinyint" precision =" 1" phptype =" boolean" attributes =" unsigned" null =" true" default =" 1" />
8
+
9
+ <field key =" template" dbtype =" integer" precision =" 10" attributes =" unsigned" phptype =" integer" null =" true" default =" 0" />
10
+ <field key =" snippet" dbtype =" integer" precision =" 10" attributes =" unsigned" phptype =" integer" null =" true" default =" 0" />
11
+ <field key =" image" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
12
+
13
+ <field key =" email_subject" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
14
+ <field key =" email_from" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
15
+ <field key =" email_from_name" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
16
+ <field key =" email_reply" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
9
17
10
18
<index alias =" name" name =" name" primary =" false" unique =" false" type =" BTREE" >
11
- <column key =" name" length =" " collation =" A" null =" false" />
19
+ <column key =" name" length =" " collation =" A" null =" false" />
12
20
</index >
13
21
<index alias =" active" name =" active" primary =" false" unique =" false" type =" BTREE" >
14
- <column key =" active" length =" " collation =" A" null =" false" />
22
+ <column key =" active" length =" " collation =" A" null =" false" />
23
+ </index >
24
+
25
+ <composite alias =" Subscribers" class =" sxSubscriber" local =" id" foreign =" newsletter_id" cardinality =" many" owner =" local" />
26
+ <aggregate alias =" Template" class =" modTemplate" local =" template" foreign =" id" cardinality =" one" owner =" foreign" />
27
+ <aggregate alias =" Snippet" class =" modSnippet" local =" snippet" foreign =" id" cardinality =" one" owner =" foreign" />
28
+ </object >
29
+
30
+
31
+ <object class =" sxSubscriber" table =" sendex_subscribers" extends =" xPDOSimpleObject" >
32
+ <field key =" newsletter_id" dbtype =" int" precision =" 10" phptype =" integer" attributes =" unsigned" null =" false" default =" 0" />
33
+ <field key =" user_id" dbtype =" int" precision =" 10" phptype =" integer" attributes =" unsigned" null =" true" default =" 0" />
34
+ <field key =" email" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
35
+
36
+ <index alias =" key" name =" key" primary =" false" unique =" true" type =" BTREE" >
37
+ <column key =" newsletter_id" length =" " collation =" A" null =" false" />
38
+ <column key =" user_id" length =" " collation =" A" null =" false" />
39
+ <column key =" email" length =" " collation =" A" null =" false" />
40
+ </index >
41
+
42
+ <aggregate alias =" Newsletter" class =" sxNewsletter" local =" newsletter_id" foreign =" id" cardinality =" one" owner =" foreign" />
43
+ <aggregate alias =" User" class =" modUser" local =" user_id" foreign =" id" cardinality =" one" owner =" foreign" />
44
+ </object >
45
+
46
+
47
+ <object class =" sxQueue" table =" sendex_queue" extends =" xPDOSimpleObject" >
48
+ <field key =" newsletter_id" dbtype =" int" precision =" 10" phptype =" integer" attributes =" unsigned" null =" false" default =" 0" />
49
+ <field key =" subscriber_id" dbtype =" int" precision =" 10" phptype =" integer" attributes =" unsigned" null =" true" default =" 0" />
50
+ <field key =" timestamp" dbtype =" timestamp" phptype =" timestamp" null =" false" default =" CURRENT_TIMESTAMP" />
51
+
52
+ <field key =" email_to" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
53
+ <field key =" email_subject" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
54
+ <field key =" email_body" dbtype =" text" phptype =" string" null =" true" default =" " />
55
+ <field key =" email_from" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
56
+ <field key =" email_from_name" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
57
+ <field key =" email_reply" dbtype =" varchar" precision =" 255" phptype =" string" null =" true" default =" " />
58
+
59
+ <index alias =" newsletter_id" name =" newsletter_id" primary =" false" unique =" false" type =" BTREE" >
60
+ <column key =" newsletter_id" length =" " collation =" A" null =" false" />
61
+ </index >
62
+ <index alias =" user_id" name =" user_id" primary =" false" unique =" false" type =" BTREE" >
63
+ <column key =" user_id" length =" " collation =" A" null =" false" />
15
64
</index >
65
+ <index alias =" timestamp" name =" timestamp" primary =" false" unique =" false" type =" BTREE" >
66
+ <column key =" timestamp" length =" " collation =" A" null =" false" />
67
+ </index >
68
+
69
+ <aggregate alias =" Newsletter" class =" sxNewsletter" local =" newsletter_id" foreign =" id" cardinality =" one" owner =" foreign" />
70
+ <aggregate alias =" Subscriber" class =" sxSubscriber" local =" subscriber_id" foreign =" id" cardinality =" one" owner =" foreign" />
16
71
</object >
17
72
18
73
</model >
0 commit comments