add a queued notice item

darcs-hash:20080704040746-84dde-36803f820ea7c238613cf5728c59a18ff1eb442d.gz
This commit is contained in:
Evan Prodromou 2008-07-04 00:07:46 -04:00
parent 7816e4122a
commit 784299c257
3 changed files with 41 additions and 0 deletions

22
classes/Queue_item.php Normal file
View File

@ -0,0 +1,22 @@
<?php
/**
* Table Definition for queue_item
*/
require_once 'DB/DataObject.php';
class Queue_item extends DB_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'queue_item'; // table name
public $notice_id; // int(4) primary_key not_null
public $created; // datetime() not_null
public $claimed; // datetime()
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Queue_item',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
}

View File

@ -75,6 +75,14 @@ modified = 384
[profile__keys] [profile__keys]
id = N id = N
[queue_item]
notice_id = 129
created = 142
claimed = 14
[queue_item__keys]
notice_id = K
[remember_me] [remember_me]
code = 130 code = 130
user_id = 129 user_id = 129

View File

@ -173,3 +173,14 @@ create table remember_me (
user_id integer not null comment 'user who is logged in' references user (id), user_id integer not null comment 'user who is logged in' references user (id),
modified timestamp comment 'date this record was modified' modified timestamp comment 'date this record was modified'
) ENGINE=InnoDB; ) ENGINE=InnoDB;
create table queue_item (
notice_id integer not null primary key comment 'notice queued' references notice (id),
created datetime not null comment 'date this record was created',
claimed datetime comment 'date this item was claimed',
index queue_item_created_idx (created)
) ENGINE=InnoDB;