BusinessCardOrder.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. namespace addons\BusinessCard\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_business_card_order".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $user_id
  10. * @property int $item_id 对象ID
  11. * @property int $log_type 201
  12. * @property int $status 状态[1启用 0禁用 -1删除]
  13. * @property int $created_at 创建时间
  14. * @property int $updated_at 更新事件
  15. * @property int $order_id 订单ID
  16. * @property string $order_no 订单编号
  17. * @property int $order_status 订单状态
  18. * @property float $pay_amount 支付金额
  19. * @property int $is_pay 是否已支付
  20. */
  21. class BusinessCardOrder extends \common\models\base\BaseActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return 'qimall_addons_business_card_order';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['mall_id', 'user_id', 'item_id', 'log_type', 'status', 'created_at', 'updated_at', 'order_id', 'order_status', 'is_pay'], 'integer'],
  37. [['pay_amount'], 'number'],
  38. [['order_no'], 'string', 'max' => 26],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'mall_id' => 'Mall ID',
  49. 'user_id' => 'User ID',
  50. 'item_id' => 'Item ID',
  51. 'log_type' => 'Log Type',
  52. 'status' => 'Status',
  53. 'created_at' => 'Created At',
  54. 'updated_at' => 'Updated At',
  55. 'order_id' => 'Order ID',
  56. 'order_no' => 'Order No',
  57. 'order_status' => 'Order Status',
  58. 'pay_amount' => 'Pay Amount',
  59. 'is_pay' => 'Is Pay',
  60. ];
  61. }
  62. }