generate classes for db schema with URIs

darcs-hash:20080522184109-84dde-0d13fc6890f85613554f5dd64b1baa67bbcaa8f6.gz
This commit is contained in:
Evan Prodromou 2008-05-22 14:41:09 -04:00
parent aa34949520
commit 7979176e14
7 changed files with 29 additions and 20 deletions

View File

@ -32,6 +32,7 @@ class Notice extends DB_DataObject
public $__table = 'notice'; // table name public $__table = 'notice'; // table name
public $id; // int(4) primary_key not_null public $id; // int(4) primary_key not_null
public $profile_id; // int(4) not_null public $profile_id; // int(4) not_null
public $uri; // varchar(255) unique_key
public $content; // varchar(140) public $content; // varchar(140)
public $url; // varchar(255) public $url; // varchar(255)
public $created; // datetime() not_null public $created; // datetime() not_null

View File

@ -31,7 +31,9 @@ class Remote_profile extends DB_DataObject
public $__table = 'remote_profile'; // table name public $__table = 'remote_profile'; // table name
public $id; // int(4) primary_key not_null 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 $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP

View File

@ -34,6 +34,7 @@ class User extends DB_DataObject
public $nickname; // varchar(64) unique_key public $nickname; // varchar(64) unique_key
public $password; // varchar(255) public $password; // varchar(255)
public $email; // varchar(255) unique_key public $email; // varchar(255) unique_key
public $uri; // varchar(255) unique_key
public $created; // datetime() not_null public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP

View File

@ -19,6 +19,7 @@ url = U
[notice] [notice]
id = 129 id = 129
profile_id = 129 profile_id = 129
uri = 2
content = 2 content = 2
url = 2 url = 2
created = 142 created = 142
@ -43,13 +44,15 @@ id = N
[remote_profile] [remote_profile]
id = 129 id = 129
url = 2 uri = 2
postnoticeurl = 2
updateprofileurl = 2
created = 142 created = 142
modified = 384 modified = 384
[remote_profile__keys] [remote_profile__keys]
id = K id = K
url = U uri = U
[subscription] [subscription]
subscriber = 129 subscriber = 129
@ -67,6 +70,7 @@ id = 129
nickname = 2 nickname = 2
password = 2 password = 2
email = 2 email = 2
uri = 2
created = 142 created = 142
modified = 384 modified = 384
@ -74,3 +78,4 @@ modified = 384
id = K id = K
nickname = U nickname = U
email = U email = U
uri = U