CloudStockTwoUpgradeBagLog.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace addons\CloudStockTwo\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_addons_cloud_stock_upgrade_bag_log".
  7. *
  8. * @property int $id
  9. * @property int $mall_id 商城id
  10. * @property int $user_id 用户id
  11. * @property string $order_no 订单编号
  12. * @property string $goods_name 商品名称
  13. * @property float $money 金额
  14. * @property string $goods_cover_pic 商品缩略图
  15. * @property int $status 状态[-1:删除;0:禁用;1启用]
  16. * @property int $created_at
  17. * @property int $updated_at
  18. */
  19. class CloudStockTwoUpgradeBagLog extends BaseActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%addons_cloud_stock_two_upgrade_bag_log}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['mall_id', 'user_id', 'status', 'created_at', 'updated_at'], 'integer'],
  35. [['order_no', 'goods_name', 'goods_cover_pic'], 'required'],
  36. [['money'], 'number'],
  37. [['order_no', 'goods_name', 'goods_cover_pic'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'mall_id' => '商城id',
  48. 'user_id' => '用户id',
  49. 'order_no' => '订单编号',
  50. 'goods_name' => '商品名称',
  51. 'money' => '金额',
  52. 'goods_cover_pic' => '商品缩略图',
  53. 'status' => '状态[-1:删除;0:禁用;1启用]',
  54. 'created_at' => 'Created At',
  55. 'updated_at' => 'Updated At',
  56. ];
  57. }
  58. }