Commit 46cbca21 by Liu Lida

add Models/*

1 parent d2e43e02
<?php
/**
* @controllerDes:用户弹幕
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 15:29
*/
namespace Lestore\Minilive\Models;
use core\base\ModelBase;
class MiniLiveMessage extends ModelBase
{
/**
* 唯一标识
* @var integer
* @Primary
* @Identity
* @Column(type="integer", length=20, nullable=false)
*/
public $id;
/**
* 用户名
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $mtoken;
/**
* 直播间id
* @var integer
* @Column(type="integer", length=20, nullable=false)
*/
public $room_id;
/**
* 用户名
* @var string
* @Column(type="string", length=50, nullable=false)
*/
public $user_name;
/**
* 用户头像
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $user_avatar;
/**
* 用户评论
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $message;
/**
* 创建时间
* @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',
'mtoken' => 'mtoken',
'room_id' => 'room_id',
'user_name' => 'user_name',
'user_avatar' => 'user_avatar',
'message' => 'message',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
];
}
}
\ No newline at end of file
<?php
/**
* @controllerDes:直播公告表
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 15:40
*/
namespace Lestore\Minilive\Models;
use core\base\ModelBase;
class MiniLiveNotice extends ModelBase
{
/**
* 唯一标识
* @var integer
* @Primary
* @Identity
* @Column(type="integer", length=20, nullable=false)
*/
public $id;
/**
* 用户名
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $mtoken;
/**
* 直播间id
* @var integer
* @Column(type="integer", length=20, nullable=false)
*/
public $room_id;
/**
* 公告消息
* @var string
* @Column(type="string", length=100, nullable=false)
*/
public $notice;
/**
* 创建时间
* @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_notice');
parent::initialize();
}
/**
* Returns table name mapped in the model.
*
* @return string
*/
public function getSource()
{
return 'ld_mini_live_notice';
}
/**
* 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',
'mtoken' => 'mtoken',
'room_id' => 'room_id',
'notice' => 'notice',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
];
}
}
\ No newline at end of file
<?php
/**
* @controllerDes:
* @author: Lyda <damonlld@163.com>
* @createTime: 2020/4/22 15:43
*/
namespace Lestore\Minilive\Models;
use core\base\ModelBase;
class MiniLiveRoom extends ModelBase
{
/**
* 唯一标识
* @var integer
* @Primary
* @Identity
* @Column(type="integer", length=20, nullable=false)
*/
public $id;
/**
* 用户名
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $mtoken;
/**
* 直播栏目
* @var integer
* @Column(type="integer", length=11, nullable=false)
*/
public $cate_id;
/**
* 直播标题
* @var string
* @Column(type="string", length=50, nullable=false)
*/
public $live_name;
/**
* 直播间封面图片
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $live_cover;
/**
* 直播间的描述介绍
* @var string
* @Column(type="string", length=255, nullable=false)
*/
public $live_description;
/**
* 直播开始时间
* @var string
* @Column(type="string", nullable=false)
*/
public $start_time;
/**
* 直播结束时间
* @var string
* @Column(type="string", nullable=false)
*/
public $end_time;
/**
* 直播状态(online立即直播,announce预告,end直播结束,playback回放,playbacking生成回放中,fail直播异常)
* @var string
* @Column(type="string", length=20, nullable=false)
*/
public $live_type;
/**
* 是否推广,0为不推广,1为推广
* @var integer
* @Column(type="integer", length=1, nullable=false)
*/
public $is_popular;
/**
* 创建时间
* @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_notice');
parent::initialize();
}
/**
* Returns table name mapped in the model.
*
* @return string
*/
public function getSource()
{
return 'ld_mini_live_notice';
}
/**
* 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',
'mtoken' => 'mtoken',
'cate_id' => 'cate_id',
'live_name' => 'live_name',
'live_cover' => 'live_cover',
'live_description' => 'live_description',
'start_time' => 'start_time',
'end_time' => 'end_time',
'live_type' => 'live_type',
'is_popular' => 'is_popular',
'created_at' => 'created_at',
'updated_at' => 'updated_at'
];
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!