You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.4 KiB
28 lines
1.4 KiB
7 months ago
|
<?php
|
||
|
class SquirrelModel extends Orm_Base{
|
||
|
public $table = 'squirrel';
|
||
|
public $field = array(
|
||
|
'id' => array('type' => "int(11)",'comment' => ''),
|
||
|
'number' => array('type' => "varchar(45)",'comment' => '笼位编号'),
|
||
|
'sex' => array('type' => "varchar(45)",'comment' => '性别'),
|
||
|
'birthday' => array('type' => "int(11)",'comment' => '小鼠生日'),
|
||
|
'father' => array('type' => "varchar(255)",'comment' => '小鼠父亲'),
|
||
|
'mother' => array('type' => "varchar(255)",'comment' => '小鼠母亲'),
|
||
|
'strains_id' => array('type' => "varchar(255)",'comment' => '小鼠品系'),
|
||
|
'gene' => array('type' => "varchar(255)",'comment' => '小鼠基因'),
|
||
|
'hair_color' => array('type' => "varchar(255)",'comment' => '小鼠毛色'),
|
||
|
'remark' => array('type' => "int(11)",'comment' => '备注'),
|
||
|
'is_kill' => array('type' => "varchar(255)",'comment' => '是否杀死'),
|
||
|
'is_delete' => array('type' => "varchar(255)",'comment' => '是否删除'),
|
||
|
'cage' => array('type' => "varchar(255)",'comment' => '笼位id'),
|
||
|
'type' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'),
|
||
|
'created' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'),
|
||
|
'c_user_id' => array('type' => "varchar(255)",'comment' => '是否为新生小鼠'),
|
||
|
);
|
||
|
public $pk = 'id';
|
||
|
public function getModelList(){
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|