use softdelete

This commit is contained in:
shibafu 2020-07-24 12:02:27 +09:00
parent d3ecfd1fb8
commit 94446e0174
2 changed files with 4 additions and 0 deletions

View File

@ -3,10 +3,13 @@
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Str;
class CheckinWebhook extends Model
{
use SoftDeletes;
/** @var int ユーザーごとの作成数制限 */
const PER_USER_LIMIT = 10;

View File

@ -18,6 +18,7 @@ class CreateCheckinWebhooksTable extends Migration
$table->integer('user_id')->nullable();
$table->string('name');
$table->timestamps();
$table->softDeletes();
$table->primary('id');