33 lines
632 B
PHP
33 lines
632 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* This file is part of Hyperf.
|
|
*
|
|
* @link https://www.hyperf.io
|
|
* @document https://hyperf.wiki
|
|
* @contact group@hyperf.io
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
*/
|
|
|
|
namespace App\Model;
|
|
|
|
use App\Utils\Crud;
|
|
use Hyperf\Database\Model\SoftDeletes;
|
|
use Hyperf\DbConnection\Model\Model as BaseModel;
|
|
|
|
abstract class Model extends BaseModel
|
|
{
|
|
public const CREATED_AT = 'create_time';
|
|
|
|
/**
|
|
* The name of the "updated at" column.
|
|
*
|
|
* @var null|string
|
|
*/
|
|
public const UPDATED_AT = 'update_time';
|
|
|
|
use SoftDeletes;
|
|
use Crud;
|
|
}
|