TimestampBehavior::class, 'value' => time() ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'is_delete', 'delivery_id', 'created_at', 'updated_at', 'supplier_id'], 'integer'], [['company', 'name', 'tel', 'mobile', 'post_code', 'province', 'city', 'exp_area', 'address'], 'string', 'max' => 255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'company' => 'Company', 'name' => 'Name', 'tel' => 'Tel', 'mobile' => 'Mobile', 'post_code' => 'Post Code', 'province' => 'Province', 'city' => 'City', 'exp_area' => 'Exp Area', 'address' => 'Address', 'is_delete' => 'Is Delete', 'delivery_id' => 'Delivery ID', 'updated_at' => '更新时间', 'created_at' => '创建时间', 'supplier_id' => '供货商id' ]; } }