MchStatistics.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\Mch\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_addons_mch_statistics".
  7. *
  8. * @property int $id
  9. * @property int $mall_id 商城id
  10. * @property int $mch_id 多商户id
  11. * @property string $date_time 月份
  12. * @property float $income_money 收入
  13. * @property int $created_at
  14. * @property int $updated_at
  15. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  16. */
  17. class MchStatistics extends BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addons_mch_statistics}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'mch_id', 'created_at', 'updated_at', 'status'], 'integer'],
  33. [['income_money'], 'number'],
  34. [['date_time'], 'string', 'max' => 50],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'mall_id' => '商城id',
  45. 'mch_id' => '多商户id',
  46. 'date_time' => '月份',
  47. 'income_money' => '收入',
  48. 'created_at' => 'Created At',
  49. 'updated_at' => 'Updated At',
  50. 'status' => '状态[-1:删除;0:禁用;1启用]',
  51. ];
  52. }
  53. }