| 
									
										
										
										
											2009-01-13 00:35:41 -05:00
										 |  |  | <?php | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Table Definition for related_group | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-22 17:52:02 -04:00
										 |  |  | class Related_group extends Managed_DataObject | 
					
						
							| 
									
										
										
										
											2009-01-13 00:35:41 -05:00
										 |  |  | { | 
					
						
							|  |  |  |     ###START_AUTOCODE
 | 
					
						
							|  |  |  |     /* the code below is auto generated do not remove the above tag */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     public $__table = 'related_group';                   // table name
 | 
					
						
							|  |  |  |     public $group_id;                        // int(4)  primary_key not_null
 | 
					
						
							|  |  |  |     public $related_group_id;                // int(4)  primary_key not_null
 | 
					
						
							| 
									
										
										
										
											2019-07-25 00:43:25 +01:00
										 |  |  |     public $created;                         // datetime()   not_null default_0000-00-00%2000%3A00%3A00
 | 
					
						
							| 
									
										
										
										
											2009-01-13 00:35:41 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /* the code above is auto generated do not remove the tag below */ | 
					
						
							|  |  |  |     ###END_AUTOCODE
 | 
					
						
							| 
									
										
										
										
											2011-08-22 17:52:02 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     public static function schemaDef() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return array( | 
					
						
							|  |  |  |             // @fixme description for related_group?
 | 
					
						
							|  |  |  |             'fields' => array( | 
					
						
							|  |  |  |                 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'), | 
					
						
							|  |  |  |                 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'), | 
					
						
							| 
									
										
										
										
											2019-07-25 00:43:25 +01:00
										 |  |  |                 'created' => array('type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'), | 
					
						
							| 
									
										
										
										
											2011-08-22 17:52:02 -04:00
										 |  |  |             ), | 
					
						
							|  |  |  |             'primary key' => array('group_id', 'related_group_id'), | 
					
						
							|  |  |  |             'foreign keys' => array( | 
					
						
							|  |  |  |                 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')), | 
					
						
							|  |  |  |                 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')), | 
					
						
							|  |  |  |             ), | 
					
						
							|  |  |  |         ); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2009-01-13 00:35:41 -05:00
										 |  |  | } |