123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 打卡时间模板
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/31
- * Time: 15:02
- */
- namespace JinDouYun\Dao\Shop;
- use JinDouYun\Dao\BaseDao;
- class DShopCard extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'shop_card';
- $this->_primary = 'id';
- $this->_fields = [
- "id",// int unsigned NOT NULL AUTO_INCREMENT,
- "shop_id",// int NOT NULL,
- "name",// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
- "price", //decimal(10,2) NOT NULL COMMENT '价格',
- "ot_price",// decimal(10,2) NOT NULL COMMENT '原价',
- "status",// tinyint NOT NULL DEFAULT '1' COMMENT '0禁用1正常',
- "image",// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '封面图',
- "info",// varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '简介',
- "introduce",// text COLLATE utf8mb4_general_ci COMMENT '详情介绍',
- "createTime",// int DEFAULT NULL COMMENT '创建时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|