diff --git a/database/migrations/2023_06_28_054011_create_code_table.php b/database/migrations/2023_06_28_054011_create_code_table.php new file mode 100644 index 0000000..5b4c5d1 --- /dev/null +++ b/database/migrations/2023_06_28_054011_create_code_table.php @@ -0,0 +1,46 @@ +id() + ->comment('自动ID'); + $table->string('email',100) + ->comment('邮箱'); + $table->string('code',64) + ->comment('验证码内容'); + $table->string('type',40) + ->comment('类型(例如:CODE-CUSTOM-CHECK)'); + $table->integer('sendTime') + ->comment('发送时间'); + $table->integer('time') + ->comment('存储结束时间戳'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('code'); + } +}