DoubleCopyAchievement.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace addons\DoubleCopy\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_double_copy_achievement}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城ID
  9. * @property int $user_id 用户id
  10. * @property int $order_detail_id 订单详情id
  11. * @property float|null $money 实付金额,单位:元
  12. * @property int $status 状态[-1:删除;0:禁用;1启用]
  13. * @property int $created_at
  14. * @property int $updated_at
  15. */
  16. class DoubleCopyAchievement extends \common\models\base\BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%addons_double_copy_achievement}}';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['mall_id', 'user_id', 'order_detail_id', 'status', 'created_at', 'updated_at'], 'integer'],
  32. [['money'], 'number'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'mall_id' => '商城ID',
  43. 'user_id' => '用户id',
  44. 'order_detail_id' => '订单详情id',
  45. 'money' => '实付金额,单位:元',
  46. 'status' => '状态[-1:删除;0:禁用;1启用]',
  47. 'created_at' => 'Created At',
  48. 'updated_at' => 'Updated At',
  49. ];
  50. }
  51. }