]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
generate classes for db schema with URIs
authorEvan Prodromou <evan@prodromou.name>
Thu, 22 May 2008 18:41:09 +0000 (14:41 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 22 May 2008 18:41:09 +0000 (14:41 -0400)
darcs-hash:20080522184109-84dde-0d13fc6890f85613554f5dd64b1baa67bbcaa8f6.gz

classes/Avatar.php
classes/Notice.php
classes/Profile.php
classes/Remote_profile.php
classes/Subscription.php
classes/User.php
classes/stoica.ini

index bf428edac02a0e38d1a2eeec84e673179e2ad259..2e0e1f3fb5ae2688e89833c6515d964d4d43e69e 100644 (file)
@@ -4,18 +4,18 @@
  */
 require_once 'DB/DataObject.php';
 
-class Avatar extends DB_DataObject
+class Avatar extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
 
     public $__table = 'avatar';                          // table name
     public $profile_id;                      // int(4)  primary_key not_null
-    public $original;                        // tinyint(1)
+    public $original;                        // tinyint(1)  
     public $width;                           // int(4)  primary_key not_null
     public $height;                          // int(4)  primary_key not_null
     public $mediatype;                       // varchar(32)   not_null
-    public $filename;                        // varchar(255)
+    public $filename;                        // varchar(255)  
     public $url;                             // varchar(255)  unique_key
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
index de3477c7677cdc95a7d7e4f7ee8a7e7684e729f4..24a719104fc9a263e8b08feaa2046cb8b403d551 100644 (file)
@@ -24,7 +24,7 @@ if (!defined('LACONICA')) { exit(1); }
  */
 require_once 'DB/DataObject.php';
 
-class Notice extends DB_DataObject
+class Notice extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
@@ -32,8 +32,9 @@ class Notice extends DB_DataObject
     public $__table = 'notice';                          // table name
     public $id;                              // int(4)  primary_key not_null
     public $profile_id;                      // int(4)   not_null
-    public $content;                         // varchar(140)
-    public $url;                             // varchar(255)
+    public $uri;                             // varchar(255)  unique_key
+    public $content;                         // varchar(140)  
+    public $url;                             // varchar(255)  
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index 5a678eb54294887018238b3fcfdee6b2fa289c7c..eb29d63a27977cea8a654439b2d500969ffa9904 100644 (file)
@@ -24,7 +24,7 @@ if (!defined('LACONICA')) { exit(1); }
  */
 require_once 'DB/DataObject.php';
 
-class Profile extends DB_DataObject
+class Profile extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
@@ -32,11 +32,11 @@ class Profile extends DB_DataObject
     public $__table = 'profile';                         // table name
     public $id;                              // int(4)  primary_key not_null
     public $nickname;                        // varchar(64)   not_null
-    public $fullname;                        // varchar(255)
-    public $profileurl;                      // varchar(255)
-    public $homepage;                        // varchar(255)
-    public $bio;                             // varchar(140)
-    public $location;                        // varchar(255)
+    public $fullname;                        // varchar(255)  
+    public $profileurl;                      // varchar(255)  
+    public $homepage;                        // varchar(255)  
+    public $bio;                             // varchar(140)  
+    public $location;                        // varchar(255)  
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index ea2f6d85986cdd5fe81b9214caacddee7114e149..e5613125dcf5d564f5ae8aec77ecb07887a87ed6 100644 (file)
@@ -24,14 +24,16 @@ if (!defined('LACONICA')) { exit(1); }
  */
 require_once 'DB/DataObject.php';
 
-class Remote_profile extends DB_DataObject
+class Remote_profile extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
 
     public $__table = 'remote_profile';                  // table name
     public $id;                              // int(4)  primary_key not_null
-    public $url;                             // varchar(255)  unique_key
+    public $uri;                             // varchar(255)  unique_key
+    public $postnoticeurl;                   // varchar(255)  
+    public $updateprofileurl;                // varchar(255)  
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index db79c8f9d53c5451a7b1117b130387cbb23e8da6..42a3916c4a2635b1f0dd42fba35fa1b70a161585 100644 (file)
@@ -24,7 +24,7 @@ if (!defined('LACONICA')) { exit(1); }
  */
 require_once 'DB/DataObject.php';
 
-class Subscription extends DB_DataObject
+class Subscription extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
@@ -32,7 +32,7 @@ class Subscription extends DB_DataObject
     public $__table = 'subscription';                    // table name
     public $subscriber;                      // int(4)  primary_key not_null
     public $subscribed;                      // int(4)  primary_key not_null
-    public $token;                           // varchar(255)
+    public $token;                           // varchar(255)  
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index 41441a21d950cb3d84eb14712e21aa5d0d227595..d750c7847296091f6e93e2cf626041bdf77587e7 100644 (file)
@@ -24,7 +24,7 @@ if (!defined('LACONICA')) { exit(1); }
 require_once 'DB/DataObject.php';
 require_once 'Validate.php';
 
-class User extends DB_DataObject
+class User extends DB_DataObject 
 {
     ###START_AUTOCODE
     /* the code below is auto generated do not remove the above tag */
@@ -32,8 +32,9 @@ class User extends DB_DataObject
     public $__table = 'user';                            // table name
     public $id;                              // int(4)  primary_key not_null
     public $nickname;                        // varchar(64)  unique_key
-    public $password;                        // varchar(255)
+    public $password;                        // varchar(255)  
     public $email;                           // varchar(255)  unique_key
+    public $uri;                             // varchar(255)  unique_key
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index 4d15225709fc0b4a2a81c6de1665e4718f7f128a..1cb6f9e0510a15ac45bdd981b2e8967e6898f8e1 100644 (file)
@@ -19,6 +19,7 @@ url = U
 [notice]
 id = 129
 profile_id = 129
+uri = 2
 content = 2
 url = 2
 created = 142
@@ -43,13 +44,15 @@ id = N
 
 [remote_profile]
 id = 129
-url = 2
+uri = 2
+postnoticeurl = 2
+updateprofileurl = 2
 created = 142
 modified = 384
 
 [remote_profile__keys]
 id = K
-url = U
+uri = U
 
 [subscription]
 subscriber = 129
@@ -67,6 +70,7 @@ id = 129
 nickname = 2
 password = 2
 email = 2
+uri = 2
 created = 142
 modified = 384
 
@@ -74,3 +78,4 @@ modified = 384
 id = K
 nickname = U
 email = U
+uri = U