VideoShopOrderExt.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%video_shop_order_ext}}".
  6. *
  7. * @property integer $id
  8. * @property string $out_order_id
  9. * @property integer $order_id
  10. * @property integer $store_id
  11. * @property integer $mini_id
  12. * @property integer $sharer_id
  13. * @property integer $status
  14. * @property integer $is_delete
  15. * @property string $order_info
  16. * @property string $union_id
  17. * @property string $created_at
  18. * @property string $updated_at
  19. */
  20. class VideoShopOrderExt extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%video_shop_order_ext}}';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['id', 'order_id', 'is_delete', 'store_id', 'mini_id', 'status', 'sharer_id'], 'integer'],
  36. [['out_order_id', 'order_info', 'union_id'], 'string'],
  37. [['created_at', 'updated_at'], 'safe']
  38. ];
  39. }
  40. public function behaviors()
  41. {
  42. return [
  43. [
  44. 'class' => TimestampBehavior::class,
  45. ]
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. "id" => "",
  55. "out_order_id" => "商品id",
  56. "order_id" => "商品id",
  57. 'mini_id' => '',
  58. 'union_id' => '',
  59. 'status' => '',
  60. "is_delete" => "",
  61. "created_at" => "",
  62. "updated_at" => "",
  63. "store_id" => "",
  64. 'sharer_id' => ''
  65. ];
  66. }
  67. }