TimestampBehavior::class, 'value' => time() ] ]; } public static function tableName() { return '{{%accessories_works}}'; } public function rules() { return [ [['store_id', 'image'], 'required'], [['store_id', 'created_at', 'user_id','updated_at'], 'integer'], [['user_name','image','goods_ids'], 'string', 'max' => 255], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城id', 'user_id' => '用户ID', 'user_name' => '用户昵称', 'image' => '场景图片', 'goods_ids' => '关联商品ID', 'created_at' => '创建时间', 'updated_at' => '更新时间' ]; } }