SotreReserveUnderwriter.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace addons\Store\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_store_reserve_underwriter".
  6. *
  7. * @property int $id ID
  8. * @property int $created_at 创建时间
  9. * @property int $updated_at 更新时间
  10. * @property int $mall_id 商城ID
  11. * @property int $status 状态0禁用,-1删除,1正常
  12. * @property int $user_id 用户ID
  13. * @property int $order_id 订单ID
  14. * @property string $order_no 订单号
  15. */
  16. class SotreReserveUnderwriter extends \common\models\base\BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return 'qimall_addons_store_reserve_underwriter';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['created_at', 'updated_at', 'mall_id', 'status', 'user_id', 'order_id'], 'integer'],
  32. [['mall_id'], 'required'],
  33. [['order_no'], 'string', 'max' => 30],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'created_at' => 'Created At',
  44. 'updated_at' => 'Updated At',
  45. 'mall_id' => 'Mall ID',
  46. 'status' => 'Status',
  47. 'user_id' => 'User ID',
  48. 'order_id' => 'Order ID',
  49. 'order_no' => 'Order No',
  50. ];
  51. }
  52. }