Commit 9c08dc8d authored by hujun's avatar hujun

model

parent 70431c06
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/3/11
* Time: 10:23
*/
namespace app\model;
use think\Db;
class CCoupon
{
// 设置当前模型对应的完整数据表名称
protected $table = 'c_coupon';
private $db_;
public function __construct()
{
$this->db_ = Db::name($this->table);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment