[Jaws-commits] r13311 - branches/0.8/html/gadgets/Users/schema

afz at jaws-project.com afz at jaws-project.com
Wed Aug 8 04:57:23 UTC 2012


Author: afz
Date: 2012-08-08 04:57:22 +0000 (Wed, 08 Aug 2012)
New Revision: 13311

Added:
   branches/0.8/html/gadgets/Users/schema/0.8.7.xml
Modified:
   branches/0.8/html/gadgets/Users/schema/schema.xml
Log:
[Users]: Update table schema

Added: branches/0.8/html/gadgets/Users/schema/0.8.7.xml
===================================================================
--- branches/0.8/html/gadgets/Users/schema/0.8.7.xml	                        (rev 0)
+++ branches/0.8/html/gadgets/Users/schema/0.8.7.xml	2012-08-08 04:57:22 UTC (rev 13311)
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<database>
+
+ <name><variable>database</variable></name>
+
+ <table>
+    <name><variable>table_prefix</variable>users</name>
+    <declaration>
+
+        <field>
+            <name>id</name>
+            <type>integer</type>
+            <notnull>true</notnull>
+            <autoincrement>true</autoincrement>
+        </field>
+
+        <field>
+            <name>username</name>
+            <type>text</type>
+            <length>32</length>
+            <notnull>true</notnull>
+        </field>
+
+        <field>
+            <name>passwd</name>
+            <type>text</type>
+            <length>64</length>
+            <notnull>true</notnull>
+        </field>
+
+        <field>
+            <name>superadmin</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>false</default>
+        </field>
+
+        <field>
+            <name>user_type</name>
+            <type>integer</type>
+            <length>1</length>
+            <default>2</default>
+        </field>
+
+        <field>
+            <name>validation_key</name>
+            <type>text</type>
+            <length>48</length>
+        </field>
+
+        <field>
+            <name>nickname</name>
+            <type>text</type>
+            <length>128</length>
+        </field>
+
+        <field>
+            <name>email</name>
+            <type>text</type>
+            <length>128</length>
+            <notnull>true</notnull>
+        </field>
+
+        <field>
+            <name>new_email</name>
+            <type>text</type>
+            <length>128</length>
+        </field>
+
+        <field>
+            <name>fname</name>
+            <type>text</type>
+            <length>128</length>
+        </field>
+
+        <field>
+            <name>lname</name>
+            <type>text</type>
+            <length>128</length>
+        </field>
+
+        <field>
+            <name>gender</name>
+            <type>integer</type>
+            <length>1</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>dob</name>
+            <type>timestamp</type>
+        </field>
+
+        <field>
+            <name>url</name>
+            <type>text</type>
+            <length>255</length>
+        </field>
+
+        <field>
+            <name>timezone</name>
+            <type>text</type>
+            <length>5</length>
+        </field>
+
+        <field>
+            <name>language</name>
+            <type>text</type>
+            <length>5</length>
+        </field>
+
+        <field>
+            <name>theme</name>
+            <type>text</type>
+            <length>24</length>
+        </field>
+
+        <field>
+            <name>editor</name>
+            <type>text</type>
+            <length>24</length>
+        </field>
+
+        <field>
+            <name>last_login</name>
+            <type>timestamp</type>
+        </field>
+
+        <field>
+            <name>createtime</name>
+            <type>timestamp</type>
+        </field>
+
+        <field>
+            <name>updatetime</name>
+            <type>timestamp</type>
+        </field>
+
+        <field>
+            <name>change_passwd</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>true</default>
+        </field>
+
+        <field>
+            <name>never_expire</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>true</default>
+        </field>
+
+        <field>
+            <name>bad_passwd_count</name>
+            <type>integer</type>
+            <length>2</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>concurrent_logins</name>
+            <type>integer</type>
+            <length>2</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>last_access</name>
+            <type>integer</type>
+            <length>16</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>enabled</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>true</default>
+        </field>
+
+        <index>
+            <name><variable>table_prefix</variable>users_username</name>
+            <unique>true</unique>
+            <field>
+                <name>username</name>
+            </field>
+        </index>
+
+        <index>
+            <name><variable>table_prefix</variable>users_email</name>
+            <field>
+                <name>email</name>
+            </field>
+        </index>
+
+
+    </declaration>
+ </table>
+
+ <table>
+    <name><variable>table_prefix</variable>groups</name>
+    <declaration>
+
+        <field>
+            <name>id</name>
+            <type>integer</type>
+            <notnull>true</notnull>
+            <autoincrement>true</autoincrement>
+        </field>
+
+        <field>
+            <name>name</name>
+            <type>text</type>
+            <length>32</length>
+            <notnull>true</notnull>
+        </field>
+
+        <field>
+            <name>title</name>
+            <type>text</type>
+            <length>255</length>
+        </field>
+
+        <field>
+            <name>description</name>
+            <type>text</type>
+        </field>
+
+        <field>
+            <name>removable</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>true</default>
+        </field>
+
+        <field>
+            <name>enabled</name>
+            <type>boolean</type>
+            <notnull>true</notnull>
+            <default>true</default>
+        </field>
+
+        <index>
+            <name><variable>table_prefix</variable>groups_name</name>
+            <unique>true</unique>
+            <field>
+                <name>name</name>
+            </field>
+        </index>
+
+    </declaration>
+ </table>
+
+ <table>
+     <name><variable>table_prefix</variable>users_groups</name>
+     <declaration>
+
+         <field>
+             <name>user_id</name>
+             <type>integer</type>
+             <notnull>true</notnull>
+         </field>
+
+         <field>
+             <name>group_id</name>
+             <type>integer</type>
+             <notnull>true</notnull>
+         </field>
+
+         <index>
+             <name><variable>table_prefix</variable>users_groups_ui</name>
+             <field>
+                 <name>user_id</name>
+             </field>
+         </index>
+
+         <index>
+             <name><variable>table_prefix</variable>users_groups_gi</name>
+             <field>
+                 <name>group_id</name>
+             </field>
+         </index>
+
+     </declaration>
+ </table>
+
+</database>

Modified: branches/0.8/html/gadgets/Users/schema/schema.xml
===================================================================
--- branches/0.8/html/gadgets/Users/schema/schema.xml	2012-08-08 04:56:15 UTC (rev 13310)
+++ branches/0.8/html/gadgets/Users/schema/schema.xml	2012-08-08 04:57:22 UTC (rev 13311)
@@ -31,38 +31,35 @@
         <field>
             <name>superadmin</name>
             <type>boolean</type>
-            <notnull>true</notnull>
             <default>false</default>
         </field>
 
         <field>
-            <name>user_type</name>
-            <type>integer</type>
-            <length>1</length>
-            <default>2</default>
+            <name>nickname</name>
+            <type>text</type>
+            <length>128</length>
         </field>
 
         <field>
-            <name>validation_key</name>
+            <name>email</name>
             <type>text</type>
-            <length>48</length>
+            <length>128</length>
         </field>
 
         <field>
-            <name>nickname</name>
+            <name>new_email</name>
             <type>text</type>
             <length>128</length>
         </field>
 
         <field>
-            <name>email</name>
+            <name>verification_key</name>
             <type>text</type>
-            <length>128</length>
-            <notnull>true</notnull>
+            <length>48</length>
         </field>
 
         <field>
-            <name>new_email</name>
+            <name>avatar</name>
             <type>text</type>
             <length>128</length>
         </field>
@@ -94,13 +91,13 @@
         <field>
             <name>url</name>
             <type>text</type>
-            <length>255</length>
+            <length>128</length>
         </field>
 
         <field>
             <name>timezone</name>
             <type>text</type>
-            <length>5</length>
+            <length>48</length>
         </field>
 
         <field>
@@ -122,35 +119,49 @@
         </field>
 
         <field>
-            <name>last_login</name>
-            <type>timestamp</type>
+            <name>country</name>
+            <type>text</type>
+            <length>2</length>
+            <fixed>true</fixed>
         </field>
 
         <field>
-            <name>createtime</name>
-            <type>timestamp</type>
+            <name>city</name>
+            <type>text</type>
+            <length>128</length>
         </field>
 
         <field>
-            <name>updatetime</name>
-            <type>timestamp</type>
+            <name>address</name>
+            <type>text</type>
+            <length>255</length>
         </field>
 
         <field>
-            <name>change_passwd</name>
-            <type>boolean</type>
-            <notnull>true</notnull>
-            <default>true</default>
+            <name>postal_code</name>
+            <type>text</type>
+            <length>24</length>
         </field>
 
         <field>
-            <name>never_expire</name>
-            <type>boolean</type>
-            <notnull>true</notnull>
-            <default>true</default>
+            <name>phone_number</name>
+            <type>text</type>
+            <length>24</length>
         </field>
 
         <field>
+            <name>mobile_number</name>
+            <type>text</type>
+            <length>24</length>
+        </field>
+
+        <field>
+            <name>fax_number</name>
+            <type>text</type>
+            <length>24</length>
+        </field>
+
+        <field>
             <name>bad_passwd_count</name>
             <type>integer</type>
             <length>2</length>
@@ -165,6 +176,13 @@
         </field>
 
         <field>
+            <name>passwd_changed_date</name>
+            <type>integer</type>
+            <length>16</length>
+            <default>0</default>
+        </field>
+
+        <field>
             <name>last_access</name>
             <type>integer</type>
             <length>16</length>
@@ -172,12 +190,34 @@
         </field>
 
         <field>
-            <name>enabled</name>
-            <type>boolean</type>
-            <notnull>true</notnull>
-            <default>true</default>
+            <name>logon_hours</name>
+            <type>text</type>
+            <length>168</length>
+            <fixed>true</fixed>
+            <default><variable>logon_hours</variable></default>
         </field>
 
+        <field>
+            <name>expiry_date</name>
+            <type>integer</type>
+            <length>16</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>registered_date</name>
+            <type>integer</type>
+            <length>16</length>
+            <default>0</default>
+        </field>
+
+        <field>
+            <name>status</name>
+            <type>integer</type>
+            <length>1</length>
+            <default>0</default>
+        </field>
+
         <index>
             <name><variable>table_prefix</variable>users_username</name>
             <unique>true</unique>
@@ -193,7 +233,6 @@
             </field>
         </index>
 
-
     </declaration>
  </table>
 
@@ -218,7 +257,7 @@
         <field>
             <name>title</name>
             <type>text</type>
-            <length>255</length>
+            <length>128</length>
         </field>
 
         <field>
@@ -229,14 +268,12 @@
         <field>
             <name>removable</name>
             <type>boolean</type>
-            <notnull>true</notnull>
             <default>true</default>
         </field>
 
         <field>
             <name>enabled</name>
             <type>boolean</type>
-            <notnull>true</notnull>
             <default>true</default>
         </field>
 



More information about the Jaws-commits mailing list