added a created timestamp to invitations

darcs-hash:20080826023116-84dde-7d80c624b2dcfa637f58509c1d5ff7eca371512c.gz
This commit is contained in:
Evan Prodromou 2008-08-25 22:31:16 -04:00
parent 19614f33a4
commit 3d48ae94e6
3 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Invitation extends DB_DataObject
public $user_id; // int(4) not_null public $user_id; // int(4) not_null
public $address; // varchar(255) multiple_key not_null public $address; // varchar(255) multiple_key not_null
public $address_type; // varchar(8) multiple_key not_null public $address_type; // varchar(8) multiple_key not_null
public $created; // datetime() not_null
/* Static get */ /* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Invitation',$k,$v); } function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Invitation',$k,$v); }

View File

@ -89,6 +89,7 @@ code = 130
user_id = 129 user_id = 129
address = 130 address = 130
address_type = 130 address_type = 130
created = 142
[invitation__keys] [invitation__keys]
code = K code = K

View File

@ -293,6 +293,7 @@ create table invitation (
user_id int not null comment 'who sent the invitation' references user (id), user_id int not null comment 'who sent the invitation' references user (id),
address varchar(255) not null comment 'invitation sent to', address varchar(255) not null comment 'invitation sent to',
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")', address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
created datetime not null comment 'date this record was created',
index invitation_address_idx (address, address_type), index invitation_address_idx (address, address_type),
index invitation_user_id_idx (user_id) index invitation_user_id_idx (user_id)