| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%printer_setting}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $mch_id
- * @property integer $printer_id
- * @property integer $block_id
- * @property string $type
- * @property integer $is_delete
- * @property integer $is_attr
- * @property integer $big
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $md_id
- * @property integer $supplier_id
- */
- class PrinterSetting extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%printer_setting}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'mch_id', 'printer_id', 'block_id', 'is_delete', 'is_attr', 'big', 'created_at', 'updated_at', 'md_id', 'supplier_id'], 'integer'],
- [['type'], 'string'],
- ['mch_id', 'default', 'value' => 0]
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'mch_id' => '商户主键',
- 'printer_id' => '打印机ID',
- 'block_id' => '打印模板ID',
- 'type' => '打印方式 ',
- 'is_delete' => 'Is Delete',
- 'is_attr' => '是否打印规格 0--不打印 1--打印',
- 'big' => '发大倍数',
- 'updated_at' => '更新时间',
- 'created_at' => '创建时间',
- "md_id" => '门店id',
- 'supplier_id' => '供货商id'
- ];
- }
- }
|