Skip to content

Commit

Permalink
update model
Browse files Browse the repository at this point in the history
  • Loading branch information
guanhui07 committed Feb 10, 2023
1 parent bc478f5 commit 10a4a75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,20 @@ ApplicationContext::getContainer()->get(DataRedis::class);
declare(strict_types=1);

namespace App\Model;
use Guanhui07\SwooleDatabase\Adapter\Model;

use DcrSwoole\DbConnection\Model;
/**
* Class UserModel
* @see https://github.com/illuminate/database
* @property int $id
* @property string $created_at
*/
class UserModel extends Model
{
protected $table = 'user';
}


```

### 控制器validate
Expand Down

0 comments on commit 10a4a75

Please sign in to comment.