VideoShopSharer.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. /**
  5. * This is the model class for table "{{%video_shop_sharer}}".
  6. *
  7. * @property integer $id
  8. * @property integer $action_id
  9. * @property string $openid
  10. * @property string $nickname
  11. * @property integer $bind_time
  12. * @property integer $sharer_type
  13. * @property string $unionid
  14. * @property integer $user_id
  15. * @property string $username
  16. * @property string $invite_image
  17. * @property integer $store_id
  18. * @property integer $share_level
  19. * @property integer $is_share
  20. * @property integer $is_bind
  21. * @property integer $is_use
  22. * @property integer $is_delete
  23. * @property string $created_at
  24. * @property string $updated_at
  25. */
  26. class VideoShopSharer extends \yii\db\ActiveRecord
  27. {
  28. /**
  29. * @inheritdoc
  30. */
  31. public static function tableName()
  32. {
  33. return '{{%video_shop_sharer}}';
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function rules()
  39. {
  40. return [
  41. [['id', 'action_id', 'sharer_type', 'store_id', 'is_share', 'is_delete', 'bind_time', 'is_bind', 'user_id', 'share_level', 'is_use'], 'integer'],
  42. [['openid', 'nickname', 'unionid', 'username', 'invite_image'], 'string'],
  43. [['created_at', 'updated_at'], 'safe']
  44. ];
  45. }
  46. public function behaviors()
  47. {
  48. return [
  49. [
  50. 'class' => TimestampBehavior::class,
  51. ]
  52. ];
  53. }
  54. /**
  55. * @inheritdoc
  56. */
  57. public function attributeLabels()
  58. {
  59. return [
  60. "id" => "",
  61. "action_id" => "小店id",
  62. "openid" => "",
  63. "nickname" => "分享员昵称",
  64. "bind_time" => "绑定时间",
  65. "sharer_type" => "分享员类型 0普通 1店铺",
  66. "unionid" => "",
  67. "username" => "邀请的用户微信号",
  68. "store_id" => "店铺id",
  69. "is_share" => "是否为邀请",
  70. "is_delete" => "",
  71. "created_at" => "",
  72. "updated_at" => "",
  73. 'invite_image' => '邀请码',
  74. 'is_bind' => '',
  75. 'user_id' => '商城用户id',
  76. 'share_level' => '分销商等级',
  77. 'is_use' => '是否激活'
  78. ];
  79. }
  80. }