<?php
/**
* @author 龙虾 <15108148@qq.com>
* @version 2.0 2020-08-06
* @copyright 睿谷信息 <www.rgxx.com>
*/
namespace app\admin\validate;
use think\Validate;

class Diyfields extends Validate
{
	
	protected $rule = [
		'title|字段名称'    => 'require|chsAlphaNum|min:2',
		'name|调用标识'     => 'require|alphaNum|min:2|unique:diyfields,tablename^cid^name'
	];
}