add a queued notice item
darcs-hash:20080704040746-84dde-36803f820ea7c238613cf5728c59a18ff1eb442d.gz
This commit is contained in:
parent
7816e4122a
commit
784299c257
22
classes/Queue_item.php
Normal file
22
classes/Queue_item.php
Normal 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
|
||||
}
|
|
@ -75,6 +75,14 @@ modified = 384
|
|||
[profile__keys]
|
||||
id = N
|
||||
|
||||
[queue_item]
|
||||
notice_id = 129
|
||||
created = 142
|
||||
claimed = 14
|
||||
|
||||
[queue_item__keys]
|
||||
notice_id = K
|
||||
|
||||
[remember_me]
|
||||
code = 130
|
||||
user_id = 129
|
||||
|
|
|
@ -173,3 +173,14 @@ create table remember_me (
|
|||
user_id integer not null comment 'user who is logged in' references user (id),
|
||||
modified timestamp comment 'date this record was modified'
|
||||
) 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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user