Commit 731dabc6 by Liu Lida

add Models/MiniLiveRoom

1 parent 46cbca21
<?php
/**
* @controllerDes:直播分类
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 16:50
*/
namespace Lestore\Minilive\Models;
use core\base\ModelBase;
class MiniLiveCategory extends ModelBase
{
/**
* 唯一标识
* @var integer
* @Primary
* @Identity
* @Column(type="integer", length=11, nullable=false)
*/
public $id;
/**
* 直播分类,名
* @var string
* @Column(type="string", length=50, nullable=false)
*/
public $category_name;
/**
* 分类父id
* @var integer
* @Column(type="integer", length=11, nullable=false)
*/
public $pid;
/**
* 显示状态
* @var integer
* @Column(type="integer", length=1, nullable=false)
*/
public $status;
/**
* 是否删除
* @var integer
* @Column(type="integer", length=1, nullable=false)
*/
public $is_delete;
/**
* 创建时间
* @var string
* @Column(type="string", nullable=false)
*/
public $created_at;
/**
* 更新时间
* @var string
* @Column(type="string", nullable=false)
*/
public $updated_at;
/**
* Initialize method for model.
*/
public function initialize()
{
$this->setSource('ld_mini_live_message');
parent::initialize();
}
/**
* Returns table name mapped in the model.
*
* @return string
*/
public function getSource()
{
return 'ld_mini_live_message';
}
/**
* Independent Column Mapping.
* Keys are the real names in the table and the values their names in the application
*
* @return array
*/
public function columnMap()
{
return [
'id' => 'id',
'category_name' => 'category_name',
'pid' => 'pid',
'status' => 'status',
'is_delete' => 'is_delete',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
];
}
}
\ No newline at end of file
<?php
/**
* @controllerDes:
* @controllerDes:直播房间
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 15:43
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!