<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;

class User extends Model {
	protected $table = 'user';
	protected $fillable = [
			'mobile',
			'password',
			'realname',
			'nickname',
			'sex',
			'photo',
			'underwrite',
	];
	public function children()
	{
		return $this->hasMany(Children::class, 'parent_id');
	}
}
