VideoShopUser.php 1.4 KB

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