AddonsBossRewardOrderLog.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace addons\BossWeight\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_boss_weight_reward_order_log}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城ID
  9. * @property int $order_id 订单ID
  10. * @property string $order_no 订单编号
  11. * @property int order_price 实付金额
  12. * @property int settle_price 计算金额
  13. * @property int $date 数据生成日期
  14. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  15. * @property int $created_at
  16. * @property int $updated_at
  17. */
  18. class AddonsBossRewardOrderLog extends \common\models\base\BaseActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%addons_boss_weight_reward_order_log}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['mall_id', 'order_id', 'date', 'status', 'created_at', 'updated_at'], 'integer'],
  34. [['order_price', 'settle_price'], 'number'],
  35. [['order_no'], 'string', 'max' => 100],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'mall_id' => '商城ID',
  46. 'order_id' => '订单ID',
  47. 'order_no' => '订单编号',
  48. 'user_id' => '用户ID',
  49. 'order_price' => '实付金额',
  50. 'settle_price' => '计算金额',
  51. 'status' => '状态[-1:删除;0:禁用;1启用]',
  52. 'created_at' => 'Created At',
  53. 'updated_at' => 'Updated At',
  54. ];
  55. }
  56. }