MchDiyTemplate.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%mch_diy_template}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $mch_id
  15. * @property string $name
  16. * @property string $template
  17. * @property integer $is_delete
  18. * @property integer $addtime
  19. */
  20. class MchDiyTemplate extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%mch_diy_template}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['store_id', 'template', 'addtime', 'mch_id'], 'required'],
  36. [['store_id', 'is_delete', 'addtime', 'mch_id'], 'integer'],
  37. [['template'], 'string'],
  38. [['name'], 'string', 'max' => 45],
  39. ];
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'store_id' => 'Store ID',
  49. 'mch_id' => '商户id',
  50. 'name' => 'Name',
  51. 'template' => 'Template',
  52. 'is_delete' => 'Is Delete',
  53. 'addtime' => 'Addtime',
  54. ];
  55. }
  56. }