update Schedule full CRUD
This commit is contained in:
@@ -21,6 +21,7 @@ use Yii;
|
||||
* @property int $created_at
|
||||
* @property int $modified_at
|
||||
* @property int $card_register_time
|
||||
* @property int $schedule_id
|
||||
*/
|
||||
class Staff extends \yii\db\ActiveRecord {
|
||||
|
||||
@@ -37,7 +38,7 @@ class Staff extends \yii\db\ActiveRecord {
|
||||
public function rules() {
|
||||
return [
|
||||
[['code', 'name', 'gender'], 'required'],
|
||||
[['code', 'card_number', 'department_id', 'birthday', 'date_in', 'created_at', 'modified_at', 'card_register_time'], 'integer'],
|
||||
[['code', 'card_number', 'department_id', 'birthday', 'date_in', 'created_at', 'modified_at', 'card_register_time', 'schedule_id'], 'integer'],
|
||||
[['address'], 'string'],
|
||||
[['name', 'email'], 'string', 'max' => 100],
|
||||
[['gender'], 'string', 'max' => 10],
|
||||
|
||||
Reference in New Issue
Block a user