2019_07_08_141029_create_love_users_table.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateLoveUsersTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('love_users', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->bigInteger('lid')->unique()->index()->comment('靓号');
  17. $table->binary('name')->comment('名');
  18. $table->string('avatar')->nullable()->comment('头像');
  19. $table->bigInteger('tel')->unique()->index()->comment('电话');
  20. $table->tinyInteger('sex')->default(1)->index()->comment('1男2女');
  21. $table->tinyInteger('age')->default(0)->index()->comment('年龄');
  22. $table->unsignedTinyInteger('vip')->default(0)->comment('1是vip0不是');
  23. $table->unsignedTinyInteger('height')->default(0)->index()->comment('身高');
  24. $table->tinyInteger('income')->default(0)->comment('收入');
  25. $table->integer('pcode')->default(0)->index()->comment('省代号');
  26. $table->integer('citycode')->default(0)->index()->comment('城市代号');
  27. $table->string('pname',20)->default('')->comment('省');
  28. $table->string('city',20)->default('')->comment('市');
  29. $table->string('adname',30)->default('')->comment('区');
  30. $table->decimal('lat',10,6)->default(0.00)->comment('Latitude');
  31. $table->decimal('lng',10,6)->default(0.00)->comment('Longitude');
  32. $table->string('requirement',40)->nullable()->default('')->comment('征友条件');
  33. $table->tinyInteger('marriage')->default(0)->comment('婚姻情况0未婚1离3丧');
  34. $table->tinyInteger('type')->default(0)->index()->comment('0普通1红娘');
  35. $table->tinyInteger('status')->default(2)->index()->comment('1在线2PushOnline3离线');
  36. $table->tinyInteger('opt')->default(0)->comment('0浏览中1相亲2专属4语音相亲中3交友5七人相亲6七人交友');
  37. $table->tinyInteger('trump')->default(0)->comment('0普同1王牌红娘');
  38. $table->string('think',140)->nullable()->comment('交友心声音');
  39. $table->string('wechat',40)->nullable()->comment('微信号');
  40. $table->string('openid',40)->nullable()->comment('微信openid');
  41. $table->string('occupation',40)->nullable()->default('')->comment('职业');
  42. $table->tinyInteger('education')->default(0)->comment('住房1初中以下2高专院3大专4本科5硕士以上');
  43. $table->tinyInteger('house')->default(0)->comment('住房1已购2与父母3租4其他');
  44. $table->tinyInteger('blood')->default(0)->comment('血型1a2b3c4ab');
  45. $table->tinyInteger('place')->default(0)->comment('是否婚后和父母住1可以2不愿意,3看情况');
  46. $table->tinyInteger('cohabitation')->default(0)->comment('是否婚后前同居');
  47. $table->integer('vip_time')->default(0)->comment('vip有效期');
  48. $table->integer('rose')->default(0)->comment('玫瑰数');
  49. $table->bigInteger('keep_to_uid')->default(0)->comment('我守护了谁');
  50. $table->bigInteger('keep_from_uid')->default(0)->comment('谁守护了我');
  51. $table->tinyInteger('charm')->default(0)->comment('魅力部位');
  52. $table->string('realname',8)->nullable()->comment('真名');
  53. $table->string('idcard')->nullable()->default('')->comment('身份证号');
  54. $table->string('like_tag')->nullable()->comment('喜欢的类型');
  55. $table->string('tag')->nullable()->default('')->comment('标签');
  56. $table->bigInteger('tuid')->default(0)->comment('推荐用户id');
  57. $table->integer('channel')->default(0)->comment('渠道');
  58. $table->integer('ban')->default(0)->comment('禁止');
  59. $table->timestamps();
  60. $table->comment = '用户表';
  61. });
  62. }
  63. /**
  64. * Reverse the migrations.
  65. *
  66. * @return void
  67. */
  68. public function down()
  69. {
  70. Schema::dropIfExists('love_users');
  71. }
  72. }