2018_09_27_062455_create_members_table.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateMembersTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('members', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('utype')->comment('用户类型');
  17. $table->string('username')->comment('会员名');
  18. $table->string('email')->comment('邮箱');
  19. $table->tinyInteger('email_audit')->comment('邮箱认证 1:认证通过 2:认证失败0未认证');
  20. $table->bigInteger('mobile')->comment('手机号码');
  21. $table->tinyInteger('mobile_audit')->comment('手机认证 1:认证通过 2:认证失败0未认证');
  22. $table->string('password')->comment('密码');
  23. $table->integer('reg_time')->comment('注册时间');
  24. $table->integer('reg_ip')->comment('注册ip');
  25. $table->string('reg_address')->comment('注册地址');
  26. $table->integer('last_login_time')->comment('最后登录时间');
  27. $table->integer('last_login_ip')->comment('最后登录ip');
  28. $table->tinyInteger('status')->default('1')->comment('会员状态 1:可用 0:禁用');
  29. $table->string('avatars')->comment('会员头像');
  30. $table->tinyInteger('robot')->comment('是否采集 0:人工注册 1:采集');
  31. $table->smallInteger('consultant');
  32. $table->integer('remind_email_time')->comment('下次邮件提醒时间');
  33. $table->string('imei');
  34. $table->integer('sms_num')->comment('短信数量');
  35. $table->tinyInteger('reg_type')->comment('注册方式(1:手机,2:邮箱,3:微信)');
  36. $table->integer('remind_email_ex_time')->comment('已经邮件提醒次数');
  37. $table->string('invitation_code');
  38. $table->integer('laiyuan')->comment('0本站,1代表聚财');
  39. $table->integer('qx_uid')->comment('表示侨乡注册的互通给聚财的用户的侨乡的uid,值默认0:自己网站注册的,1是侨乡网members表的uid');
  40. $table->string('talent_category')->comment('人才类别');
  41. $table->smallInteger('talent_category_audit')->comment('人才类别审核状态,0,未认证,1,认证通过,2等待认证,3认证未通过');
  42. $table->tinyInteger('member_status')->comment('会员状态,1需要找工作,2已找到工作,3来晋创业');
  43. $table->tinyInteger('reg_source')->default('1')->comment('注册来源 1:网页端 2:手机端 3:微信小程序');
  44. $table->string('reg_source_cn')->default('网页端')->comment('注册来源 1:网页端 2:手机端 3:微信小程序');
  45. $table->smallInteger('subsite_id')->comment('分站id:0为总站');
  46. $table->rememberToken();
  47. $table->timestamps();
  48. $table->softDeletes();
  49. });
  50. }
  51. /**
  52. * Reverse the migrations.
  53. *
  54. * @return void
  55. */
  56. public function down()
  57. {
  58. Schema::dropIfExists('members');
  59. }
  60. }