| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%insurance}}".
- *
- * @property int $id
- * @property int $store_id
- * @property string $name 姓名
- * @property string $phone 手机号
- * @property string $address 地址
- * @property string $date 服务时间
- * @property string $serve 服务项目
- * @property string $price 服务金额
- * @property string $serve_man 服务人员
- * @property string $insurance 保单信息
- * @property string $report 报告
- * @property string $search_num 剩余查询次数
- * @property int $is_delete 是否删除:0=否;1=是;
- * @property int $created_at 添加时间
- * @property int $updated_at 更新时间
- * @property string $live_room_url 绑定直播间地址
- */
- class Insurance extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%insurance}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'name'], 'required'],
- [['store_id','updated_at', 'created_at', 'is_delete', ], 'integer'],
- [['name', 'phone', 'address', 'date', 'serve', 'price', 'serve_man', 'insurance', 'report', 'search_num'], 'string', 'max' => 255],
- [['live_room_url'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'name' => '名称',
- 'phone' => '手机号',
- 'address' => '地址',
- 'date' => '服务时间',
- 'serve' => '服务项目',
- 'price' => '服务金额',
- 'serve_man' => '服务人员',
- 'insurance' => '保单信息',
- 'report' => '报告',
- 'search_num' => '剩余查询次数',
- 'is_delete' => '是否删除:0=否;1=是;',
- 'created_at' => '添加时间',
- 'updated_at' => 'Update Time',
- 'live_room_url' => '绑定直播间地址'
- ];
- }
- }
|